Skip to main content
 首页 » 编程设计

python之mac 上的 gcc-4.0 和 xcode 4 已经安装

2025年05月04日8zhwl

我需要在我的 mac 上安装一个库 (http://sourceforge.net/projects/fable/files/fabio/0.0.8/),但我不断收到以下消息:

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 

我有点迷失在这个安装中。我觉得我在另一个需要的目录和另一个版本(4.2 而不是 4.0)中有 gcc。有人可以帮我解决这个问题吗?

请您参考如下方法:

sh: gcc-4.0: command not found 

您的 shell 找不到名为“gcc-4.0”的可执行文件。在安装库时,您可能会为其设置别名或临时创建一个符号链接(symbolic link)。