我在CentOS 5.3上运行一个网站。我知道如果升级默认的Python 2.4,centos将会中断。我跟着这个网站(http://www.question-defense.com/2009/12/25/how-to-install-python-2-6-on-centos-5-without-breaking-yum),并安装了python 2.6。在Cent OS 5.3上为python2.6编译mod_wsgi时出错
现在,如果我运行“python”它运行python2.4,如果我运行“python26”它运行python2.6。
我想编译mod_wsgi-3.2。运行./configure时只需要python 2.4环境。我曾尝试使用--with-python =/usr/bin/python26。这样,“make”命令不起作用。
有人可以对此有所了解吗?
在此先感谢
对不起那个。输出太长。
它以这种方式结束。
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:
rror: 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
谢谢
请随时与我们分享输出,而不是让我们猜测。 – 2010-05-21 15:46:25
什么阻止你使用python 2.4来运行wsgi应用程序? – 2010-05-21 17:07:42
我正在运行django,并且我使用的一些模块需要至少python2.5或更高版本 – webdev 2010-05-21 17:32:23