gpt4 book ai didi

python - 在 SUSE 11 服务器上安装 mod_wsgi 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 19:30:38 26 4
gpt4 key购买 nike

apache版本:2.2.6

Python 版本:2.6

./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/usr/bin/python 的结果没问题,但只是出现了一些错误make时如下:

....
mod_wsgi.c:14430: error: expected expression before âmoduleâ
mod_wsgi.c:14431: error: expected identifier or â(â before â=â token
mod_wsgi.c:14446: error: expected expression before âmoduleâ
mod_wsgi.c:14447: error: âmodule_dictâ undeclared (first use in this function)
mod_wsgi.c:14448: error: âobjectâ undeclared (first use in this function)
mod_wsgi.c:14450: error: expected expression before âmoduleâ
mod_wsgi.c:14454: error: âvarsâ undeclared (first use in this function)
mod_wsgi.c:14455: error: âargsâ undeclared (first use in this function)
mod_wsgi.c:14456: error: âresultâ undeclared (first use in this function)
mod_wsgi.c:14457: error: âmethodâ undeclared (first use in this function)
mod_wsgi.c:14474: error: âPy_Noneâ undeclared (first use in this function)
mod_wsgi.c:14488: error: âPy_Trueâ undeclared (first use in this function)
mod_wsgi.c:14491: error: âPy_Falseâ undeclared (first use in this function)
mod_wsgi.c:14503: error: âPyExc_TypeErrorâ undeclared (first use in this function)
mod_wsgi.c:14519: error: âAuthObjectâ has no member named ârâ
mod_wsgi.c:14523: error: âAuthObjectâ has no member named âlogâ
mod_wsgi.c:14526: error: âPyExc_AttributeErrorâ undeclared (first use in this function)
mod_wsgi.c:14528: error: âAuthObjectâ has no member named âlogâ
mod_wsgi.c:14541: error: expected expression before â)â token
mod_wsgi.c:14548: error: expected â;â before âap_log_rerrorâ
mod_wsgi.c:14553: error: expected â;â before â}â token
mod_wsgi.c:14558: error: too many arguments to function âwsgi_log_python_errorâ
mod_wsgi.c:14563: error: expected expression before âmoduleâ
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1

请多多指教

最佳答案

我也有同样的错误;我通过从头开始编译 python 2.7.2 解决了这个问题;如果你浏览不同的论坛,你会发现一些 python 库是在 32 位系统上编译的,而你可能正在使用 64 位系统。

2.7 或更高版本的 2.6 编译起来很痛苦,因为你必须获得所有缺少的依赖项。你将以这样的方式结束

Python 构建已完成,但未找到构建这些模块所需的位:bsddb185 dl imageop
Sunaudiodev
要查找必要的位,请在 detector_modules() 中的 setup.py 中查找模块名称。

无法构建这些模块:_curses_面板

运行 build_scripts

这些库都已被折旧,因此按原样进行安装是安全的

关于python - 在 SUSE 11 服务器上安装 mod_wsgi 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6053981/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com