2012-08-30 35 views
0

我正試圖在mod_wsgi的運行make在CentOS x86_64的3.3編譯時出現以下錯誤:錯誤使用 「讓」 爲mod_wsgi的3.3

/usr/local/include/python2.6/pyport.h:694:2: error: #error "LONG_BIT definition 
    appears wrong for platform (bad gcc/glibc config?)." 

設置信息:

我的配置腳本:

./configure --prefix=/usr/local --with-python=/usr/local/bin/python2.6 
    --with-apxs=/usr/sbin/apxs 

化妝:

LD_RUN_PATH=/usr/local/lib make 

file /usr/local/bin/python2.6: 
/usr/local/bin/python2.6: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped 
file /usr/sbin/httpd: 
/usr/sbin/httpd: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped 

任何想法?

回答

0

您的Python安裝似乎沒有正確安裝32位和64位。

+0

請只發布在任一網站上的答案。我只是在這裏發帖,以防其他人可能想回答。我很感激幫助。我一直在使用這個配置腳本,其中一部分來自linuxfromscratch.com: sed -i「s/ndbm_libs = \ [\]/ndbm_libs = ['gdbm','gdbm_compat'] /」setup.py && ./configure --prefix =/usr/local --enable-shared --with-threads - 我正在運行64位apache。我應該在python的配置腳本中爲64位添加一個標誌/選項嗎?如果是的話,你知道這些選項是什麼嗎? – ldavidson

+0

Configure:sed -i「s/ndbm_libs = []/ndbm_libs = ['gdbm','gdbm_compat'] /」setup.py && ./configure --prefix =/usr/local --enable-shared --with -threads – ldavidson