fgt*_*hct 5 python mod-wsgi apache2.4 ubuntu-16.04
嗨,我是编译mod_wsgi在virtualenv同python3.6和apache2.4。
我已经有另一个virtualenv与python3.5和mod_wsgi作品。编译在我的新virtualenv与python3.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)
我重申我已经有了另一个virtualenv,python3.5并且可以使用。
在此先感谢那些想帮助我的人。
Fgthct