【发布时间】:2015-02-27 13:11:43
【问题描述】:
我在我的 mac 中安装了 gcc 4.9 版和 homebrew。但是当我在终端检查 gcc 版本时,它仍然显示旧版本。
Aarons-MacBook-Air:bin Aaron$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
请帮忙
【问题讨论】:
-
homebrew默认安装编译器带有版本后缀,所以叫
gcc-4.9,以免干扰系统提供的编译器。