0

尝试make在 CentOS x86_64 上运行 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

有任何想法吗?

4

1 回答 1

0

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

于 2012-08-30T22:54:21.510 回答