/usr/local/lib/libpython3.6m.a:添加符号时出错:值收集错误2:错误:ld返回1退出状态错误:命令'gcc

fgt*_*hct 5 python mod-wsgi apache2.4 ubuntu-16.04

嗨,我是编译mod_wsgivirtualenvpython3.6apache2.4

我已经有另一个virtualenvpython3.5mod_wsgi作品。编译在我的新virtualenvpython3.6同:

./configure --with-python=/home/fgthct/.virtualenv/djangodev/bin/python
Run Code Online (Sandbox Code Playgroud)

这会产生Makefile。当我运行时make,最终出现以下错误:

/usr/bin/ ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct 'can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.6m.a: error adding symbols: Wrong value
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1.
Run Code Online (Sandbox Code Playgroud)

我重申我已经有了另一个virtualenvpython3.5并且可以使用。

在此先感谢那些想帮助我的人。

Fgthct