$ sudo installer -pkg Command\ Line\ Tools\ \(Mountain\ Lion\).mpkg -target / Here, installer must be run with sudo because this package needs to be installed on the root file system $ cd /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\) Here, I'm using hdiutil to mount the image $ hdiutil attach ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg In the following command, I'm using scp to securely copy the file from my local computer to the remote named remote $ scp ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg remote:Downloads/ If you don't have a free Apple developer account, register for oneĭownload the "Command Line Tools for Xcode" appropriate for your version of OSXįor me, that was "Command Line Tools (OS X Mountain Lion) for Xcode - April 2014" Just make sure you get your paths correct. Notice: I imagine this process would work identically for any version of Xcode or OSX. I recently had to install Xcode command line tools on Mountain Lion over SSH. Here is my Console log: 15:41:54.258 Xcode: DVTDownloadable: Download failed. If you take a look into "Console" while trying to pull the Command Line Tools, you will find out that there is actually an "unofficial" link to the Mountain Lion Command Line Tools! In the pane on the left, search for "command line tools" and choose the package appropriate to your version of OS X. Go to /downloads/index.action, and sign in with your Apple ID (the download's free). If you do not have Xcode, they are available as a separate download from Apple:
0 Comments
Leave a Reply. |