为什么我的gcc不在/usr/bin/gcc中,即使安装了Xcode 4.3?

前端之家收集整理的这篇文章主要介绍了为什么我的gcc不在/usr/bin/gcc中,即使安装了Xcode 4.3?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在我的机器上安装了 Xcode 4.3,但是,它不是在任何地方,甚至是

find / -name gcc

不透露它.不过,Xcode可以编译C代码.所以我的系统上必须有一个编译器!

它在哪里?

解决方法

在新版本的Xcode 4.3中,命令行工具是可选的,不会自动安装.有关详细信息,请参阅 here

Command-Line Tools Are Optional:
The command-line tools are not bundled with Xcode 4.3 by default. Instead,they can be installed optionally using the Components tab of the Downloads preferences panel as shown in Figure 3.

因此,您必须转到“下载首选项”面板并下载它们.

猜你在找的Xcode相关文章