我在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