和终端切换gcc版本,当我键入在mac上
new-host-2: me$ gcc -version
i686-apple-darwin11-llvm-gcc-4.2: no input files
是默认的Xcode/MAC gcc编译器版本?因为当我尝试做一个
sudo easy_install cython
我得到:
Running Cython-0.15.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qS3Kqb/Cython-0.15.1/egg-dist-tmp-Zh0Vnv
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-arch"
我读过,-arch是苹果的GCC编译器的唯一功能。我想当我从macports安装一个端口时,我记得它安装了一个名为“llvm”的东西,现在我怀疑它正在被使用,而不是XCODE附带的那个。
任何方式切换回来?
哦,当我输入“sudo的端口选择GCC”我知道(这可能是相应和,以知道我有gcc版本):
Available versions for gcc:
apple-gcc42
gcc42
llvm-gcc42
mp-gcc44
mp-llvm-gcc42
none