Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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.

share|improve this question
1  
Do you need all of Xcode, or just what is needed for homebrew? –  jmlumpkin May 31 '12 at 19:12
    
Did you ever get an acceptable answer here? It helps when you mark the best answer as accepted so others can know your issue is sorted. –  bmike Jul 5 '12 at 15:10
add comment

3 Answers 3

up vote 6 down vote accepted

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.

share|improve this answer
    
@bmike That's what I intended to say; thanks for the clarification. –  CajunLuke May 31 '12 at 21:07
    
It's rare when I can lend a hand like you do on my posts time and time again. –  bmike Jun 1 '12 at 0:32
    
@bmike You post so much more than I do, so the ratio might be close to even. If we still got reputation for edits like under-2k users do, I might have as much rep as you do. :) –  CajunLuke Jun 1 '12 at 0:34
add comment

While this doesn't actually answer your direct question of Xcode on Lion, if you are only needing part of it for homebrew, Xcode 4.3 split many of the other parts of Xcode off into separate different downloads.

If you only need the command line tools for homebrew and the like, you no longer need to install all of Xcode. Here is another link as well.

Otherwise, Apple used to allow downloads of Xcode from the Dev center, but most of this is driven through the App Store now.

Finally, Xcode is a rather large application, and the installation is unique too. Make sure that another window hasn't opened waiting for input on the installation, etc. It also may take a long time to download, which should be noted in the App Store on its progress.

share|improve this answer
add comment

With Snow Leopard Xcode could also be found on the installation disks. May you can find it on the Lion disks as well and install it from there.

share|improve this answer
    
Sadly, it's not on the Lion install media. –  CajunLuke Jun 5 '12 at 14:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.