1

当我在 AIX 6.1 上运行以下命令来构建 PyMQI 1.2 时:

python setup.py build server

我收到以下错误:

搭建 PyMQI 服务器 32bits

运行构建

运行 build_py

运行 build_ext

构建“pymqe”扩展

cc_r -qlanglvl=extc89 -DNDEBUG -O3 -qstrict -qtune=pwr4 -qarch=pwr4 -qcpluscmt -D_LARGE_FILES -DPYQMI_SERVERBUILD=1 -I/usr/mqm/inc -I/opt/freeware/include/python2.6 -c pymqe .c -o build/temp.aix-6.1-2.6/pymqe.o 无法执行 cc_r:没有这样的文件或目录

错误:命令“cc_r”失败,退出状态为 1

如何强制 Python 构建 scipt 使用我的 GCC 编译器而不是 cc_r ?

4

1 回答 1

1

setup.py build命令有以下两个选项

  --compiler (-c)    specify the compiler type
  --help-compiler    list available compilers

使用这些来指定您要使用的编译器。

于 2011-03-21T10:48:01.007 回答