尝试在CentOS x86_64上的mod_wsgi 3.3编译上运行make
时出现以下错误:
/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 :(得分:0)
对于32位和64位,您的Python安装似乎没有正确安装。