2012-02-14 117 views
2

我需要我的Mac上安装一个库(http://sourceforge.net/projects/fable/files/fabio/0.0.8/),但我不断收到以下消息:GCC-4.0在Mac和xcode的4已经安装

compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include - I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' 
gcc-4.0: src/ccp4_pack.c 
sh: gcc-4.0: command not found 

我安装了Xcode 4,但在/ usr/bin /中没有任何gcc文件。但我在/ Developer的/ usr/bin中名为/ gcc的一些东西,说这句话的时候我说开GCC:

/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 ; exit; 
i686-apple-darwin11-llvm-gcc-4.2: no input files 
logout 

我有点在此安装丢失。我有这样的感觉,我有另一个目录中的gcc在另一个目录中,在另一个版本(4.2而不是4.0)。有人可以帮我弄这个吗?

+0

我有同样的问题。我有一个mac 1.7.3 xcode4,我不能使用RVM吨安装红宝石,因为它说C ompilter(海湾合作委员会和其他人)失踪 – 2012-02-17 16:21:05

回答

0

在须藤苏模式下输入以下命令:export ARCHFLAGS="-arch i686"解决这个问题,即使我完全不知道为什么...!

1
sh: gcc-4.0: command not found 

您的shell找不到名为'gcc-4.0'的可执行文件。在安装库时,您可能会将其别名或临时创建符号链接。