我正在尝试用Flask托管一个web应用程序。我有个VPS在运行CentOS。我安装了Apache2.2.26。在
当我在虚拟环境中或在Python主安装上运行pip install mod_wsgi
时,我得到以下错误
第一个错误在Python跟踪之前打印出来。。。在
/usr/bin/ld: /home5/arguably/python27/lib/python2.7/config/libpython2.7.a(abstra ct.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when maki ng a shared object; recompile with -fPIC
/home5/arguably/python27/lib/python2.7/config/libpython2.7.a: could not read sym bols: Bad value
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
这个错误是在查看我的主要Python安装。那不是virtualenv所在的地方
Python错误。。。在
^{pr2}$那个人在看我的虚拟现实
Python跟踪text = '\n'.join(complete_log)
中文件中的行。。在
if store_log:
log_file_fn = options.log_file
text = '\n'.join(complete_log)
try:
log_file_fp = open_logfile(log_file_fn, 'w')
except IOError:
temp = tempfile.NamedTemporaryFile(delete=False)
log_file_fn = temp.name
log_file_fp = open_logfile(log_file_fn, 'w')
您的Python安装尚未与共享库一起安装。这是mod\wsgi需要的。请参阅mod_wsgi文档。在
从头开始重新安装Python,这次在构建Python时使用
enable-shared
脚本。在相关问题 更多 >
编程相关推荐