0

我一直在使用命令行工具和文本编辑器来编译类项目,效果很好。不幸的是,他们已经成为我们使用 4.7 的固执己见。Xcode(以及 OSX)只有 llvm-gcc 4.2,所以我想升级。

我已经安装了 macports 并找到了安装 gcc 4.7 的说明,但它说我需要安装 xcode。我希望能够只使用命令行工具而没有 xcode(我不需要任何 iOS 或图形的东西,我只想要 gcc.

无论如何,如果不可能,那没什么大不了的,但是如果有人能指出我正确的方向,我将不胜感激。谢谢!

澄清一下,我有命令行工具,但没有我想要的 gcc 版本。运行 macports 会导致:

The-Black-Pearl:Desktop David$ sudo port install gcc47
Error: 
Error: No Xcode installation was found.
Error: Please install Xcode and/or run xcode-select to specify its location.
Error: 
Error: The installed version of Xcode (2.0orlower) is too old to use on the installed OS version. 
Version 4.1 or later is recommended on Mac OS X 10.8.
4

0 回答 0