简体   繁体   中英

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:

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/. But I have something in /Developer/usr/bin/ named gcc which saying this when I say open 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). Can someone help me with this?

sh: gcc-4.0: command not found

Your shell can't find an executable named 'gcc-4.0'. You might alias that or create a symlink temporarily while you're installing the library.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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