由于gcc -arch导致错误

时间:2014-08-06 16:28:36

标签: python macos gcc compiler-errors install

错误是:

cc1: error: unrecognized command line option "-arch"

来自我尝试使用以下方法安装GEOS:

python setup.py install

完整后,终端输出显示:

cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-arch"
Traceback (most recent call last):
  File "setup.py", line 97, in <module>
    objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
  File "/Users/ged/anaconda/lib/python2.7/site-packages/numpy/distutils/ccompiler.py", line 205, in CCompiler_compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/Users/ged/anaconda/lib/python2.7/site-packages/numpy/distutils/unixccompiler.py", line 40, in UnixCCompiler__compile
    raise CompileError(msg)
distutils.errors.CompileError: Command "gcc -fno-strict-aliasing -I/Users/ged/anaconda/include -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Isrc -c nad2bin.c -o nad2bin.o" failed with exit status 1

issue已被提出,解决方案是恢复原来随Mac一起提供的gcc(OS X版本10.7.3)

如果这可能是我正在寻找的解决方案,你如何恢复gcc

如果您需要其他信息,请发表评论。

谢谢!

0 个答案:

没有答案