在mod_wsgi 3.3中使用“make”时出错

时间:2012-08-30 15:25:03

标签: python apache mod-wsgi

尝试在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

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

对于32位和64位,您的Python安装似乎没有正确安装。