简体   繁体   English

升级到Mountain Lion和XCode 4打破了我的“制造”?

[英]Upgrading to Mountain Lion and XCode 4 broke my “make”?

TL/DR: I upgraded stuff and now I can't run "make" - wtf? TL / DR:我升级了东西,现在我不能运行“make” - wtf?

I just upgraded from Mac OS X 10.6 to 10.8 Mountain Lion, and then installed XCode 4 (formerly I had Developer/Applications/Xcode (3.something). XCode 4 installed through the App Store application to /Applications. Somewhere along the way, I can no longer run the "make" command. And I've tried looking in all the usual /bins but can't find a "make". 我刚刚从Mac OS X 10.6升级到10.8 Mountain Lion,然后安装了XCode 4(以前我有Developer / Applications / Xcode(3.something).XCode 4通过App Store应用程序安装到/ Applications。沿途的某个地方,我不能再运行“make”命令了。我已经尝试查看所有常用/箱子但找不到“make”。

Anyone know how to get my "make" command back? 任何人都知道如何获得我的“make”命令?

Upgrading Apple stuff always breaks something... (it also broke my "git" command but I got that one back) 升级Apple的东西总会破坏一些东西......(它也破坏了我的“git”命令,但我得到了那个)

You need to install the command line tools as described at installing "make" on Mac . 您需要安装命令行工具,如在Mac安装“make”所述。 They are not installed by default in Xcode 4. 默认情况下,它们不会安装在Xcode 4中。

Easiest way to install: 最简单的安装方式:

  1. Launch XCode 启动XCode
  2. Go to Preferences > Downloads > Components 转到首选项>下载>组件
  3. Click "Install" next to 'Command Line Tools' 点击“命令行工具”旁边的“安装”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM