Python 编译问题(cc1:错误:无法识别的命令行选项“-ip”)

Python 编译问题(cc1:错误:无法识别的命令行选项“-ip”),python,unix,compilation,Python,Unix,Compilation,我在编译某些python模块时遇到问题。安装失败,出现以下错误: cc1: error: unrecognized command line option "-ip" error: Setup script exited with error: command 'gcc' failed with exit status 1 我在共享系统上,没有根访问权限。因此,我使用以下方法安装模块: easy_install --prefix=$HOME/local <module_dir>

我在编译某些python模块时遇到问题。安装失败,出现以下错误:

cc1: error: unrecognized command line option "-ip"
error: Setup script exited with error: command 'gcc' failed with exit status 1
我在共享系统上,没有根访问权限。因此,我使用以下方法安装模块:

easy_install --prefix=$HOME/local <module_dir>
我在谷歌上查了一下,但还没有找到具体的解决办法。据我所知,它与编译器设置/配置有关

如果您能指导我完成解决此问题所需的步骤,我将不胜感激。我在几个python模块pygame、crypto等中遇到了相同的问题,而大多数其他模块的安装都没有任何问题


谢谢大家!

当你做人工cc1时会发生什么,它有cc1的手册吗?没有找到cc1的手动输入。然而,我运行了locate,结果是:locate cc1/usr/lib/bcc/bcc-cc1/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/cc1/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/cc1plus/usr/libexec/gcc/x86-redhat/gcc/x86-linux/4.1.1/cc1/cc1/usr/libexec/libexec/x86-redhat-linux/4.1.1/cclus1运行良好时会发生什么?这个版本很奇怪。它抱怨没有找到cc1-bash:cc1:command not found我在路径变量中添加了cc1的路径,并重试了设置。但是,它会以相同的错误退出。现在,cc1-version返回:cc1-version GNU C version 4.1.2 20080704 Red Hat 4.1.2-52 x86_64-redhat-linux,由GNU C version 4.1.2 20080704 Red Hat 4.1.2-52编译。GGC启发式:-参数GGC最小扩展=100-参数GGC最小堆化=10000