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

僤鯓⒐⒋嵵緔 提交于 2019-12-09 05:04:19

问题


TL/DR: I upgraded stuff and now I can't run "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".

Anyone know how to get my "make" command back?

Upgrading Apple stuff always breaks something... (it also broke my "git" command but I got that one back)


回答1:


You need to install the command line tools as described at installing "make" on Mac. They are not installed by default in Xcode 4.




回答2:


Easiest way to install:

  1. Launch XCode
  2. Go to Preferences > Downloads > Components
  3. Click "Install" next to 'Command Line Tools'


来源:https://stackoverflow.com/questions/11705912/upgrading-to-mountain-lion-and-xcode-4-broke-my-make

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!