gcc查看当前的版本并升级
1.gcc查看版本:gcc -v MacBook-Pro:$ gcc -v Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 7.0.0 (clang-700.1.76) Target: x86_64-apple-darwin14.5.0 Thread model: posix
2.gcc的升级: http://asflex.iteye.com/blog/1956637