简体   繁体   English

Mac和xcode 4上的gcc-4.0已安装

[英]gcc-4.0 on mac and xcode 4 already installed

I need to install a library (http://sourceforge.net/projects/fable/files/fabio/0.0.8/) on my mac but I keep getting the following message: 我需要在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

I have Xcode 4 installed but I don't have any gcc file in /usr/bin/. 我已经安装了Xcode 4,但是/ usr / bin /中没有任何gcc文件。 But I have something in /Developer/usr/bin/ named gcc which saying this when I say open 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

I am a bit lost in this installation. 我在这个安装中有点迷路。 I have the feeling that I have gcc in another directory that the one needed and in another version (4.2 instead of 4.0). 我感觉我在另一个需要的目录和另一个版本(4.2而不是4.0)中有gcc。 Can someone help me with this? 有人可以帮我弄这个吗?

sh: gcc-4.0: command not found

Your shell can't find an executable named 'gcc-4.0'. 您的外壳找不到名为“ gcc-4.0”的可执行文件。 You might alias that or create a symlink temporarily while you're installing the library. 在安装库时,您可以为此设置别名或临时创建符号链接。

在sudo su模式下输入此命令: export ARCHFLAGS="-arch i686"解决此问题,即使我不知道为什么...!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM