MacOS – How to get Xcode to install under Lion

homebrewmacosxcode

I'm slightly confused under Lion as to how to get dependencies in place for Homebrew. It wants Xcode in place, and I can go to the app store and click on "Install", and it dutifully says "Installing"… and stays stuck on "Installing" after several minutes. I can find Xcode but apparently not get to "Installed", in the past indicative.

How can I install Xcode? Do I just need to give it more time to install? Or is there another way like installing from tarball? It's been "Installing" for a few minutes, and seems stuck.

Best Answer

When the App Store is "Installing" keep in mind this includes "Downloading", and Xcode is usually about 4 GB. Leave it overnight or monitor your network traffic to see the progress.

Once Xcode is installed, you will need to run xcode-select to expand your path since tools like make and compilers/linkers are in /Applications/Xcode and not in your typical bash path. You can go to settings and download the command line tools to keep them if decide to delete Xcode later.