2011-05-19 76 views
1

Apache的版本:2.2.6错误在SUSE安装mod_wsgi的11服务器

蟒蛇versoin: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 

请告诉我

+1

不熟悉SUSE,但我相信你需要python开发包。快速谷歌搜索给了我这个:http://www.novell.com/products/linuxpackages/opensuse/python-devel.html – sdolan 2011-05-19 05:05:17

回答

1

我有同样的错误;我通过从头开始编译python 2.7.2来解决它;如果你环顾不同的论坛,你将会看到一些在32位系统上编译的python库,你可能正在使用64位系统。

适用于2.7或更高版本2.6由于您必须获得所有缺失的依赖关系,因此编译起来很麻烦。你会像这样

Python构建完成的结束,但必要的位来构建这些模块均未发现: bsddb185 DL imageop
sunaudiodev
要找到所需的位,看在setup.py在detect_modules( )为模块的名称。

无法建立这些模块: _curses_panel

运行build_scripts

这个库已经全部大幅贬值,它是安全的做make install这是