蟒蛇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
请告诉我
2011-05-19
Newbie
+1
不熟悉SUSE,但我相信你需要python开发包。快速谷歌搜索给了我这个:http://www.novell.com/products/linuxpackages/opensuse/python-devel.html –
2011-05-19 05:05:17