我下载了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
这是为什么呢?要怎么解决