apache+mod_wsgi+python3配置问题

我下载了python3,然后修改了软连接,现在输入python,出来的是python3版本的了。
然后下载了mode_wsgi4.5.24,
看着网上,执行了这个命令:
./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/usr/bin/python3
没有报错

在输入make的时候,出错了:
/usr/bin/ld: /usr/local/lib/libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_PyObject_NextNotImplemented' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.5m.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: * [src/server/mod_wsgi.la] Error 1

这是为什么呢?要怎么解决

阅读 3.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题