Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I started an installation of the Xcode 4 developer's preview last night before going to bed. When I woke up, the installation had popped up a message saying to close Xcode first (doh!). I did so, but whatever script had displayed the message seemed to have hung because the (uncancellable) message wouldn't disappear, and the installer wouldn't progress.

After force quitting the Installer app, the message above was still showing, so I restarted my MacBook Pro and then tried the installation again. This time it wouldn't even start, instead showing one of those candy-stripe activity bars and the message:

Waiting for other installations to finish

At this point, I'm stumped. There are no other installations in progress, so there must be some artifact left over from the interrupted install that's gumming up the works. But what?

share|improve this question

4 Answers 4

up vote 9 down vote accepted
  1. sudo rm /private/var/db/mds/system/mds.install.lock
  2. reboot

Chances are that a previous installation hung and the lock was never cleaned up.

share|improve this answer
    
it's weird how many times I have to refer to my own answer here... that's such an obtuse path. –  bluesmoon Apr 26 '12 at 14:45
1  
Obtuse indeed. Worked for me without having to reboot--thanks much. –  funroll Oct 28 '12 at 6:57

Is there a previous Xcode installation on your computer? If yes maybe you should try and uninstall it first. Good luck..

share|improve this answer
3  
Bad advice - Apple even expressly allows multiple Xcode installations to exist. I see your reply was first, so you made a blind guess, and I'm just saying: Uninstalling other software on OSX is usually not the solution - that's contrary to Windows, where this used to be rather the rule. –  SuperTempel May 11 '12 at 9:10

I had the same problem today (for no apparent reason), found a couple of solutions suggesting deleting some files - but nothing helped (at least was not enough). Eventually force-quitting the installer with activity monitor and then restarting my Mac did it and after the restart the installation completed fine.

share|improve this answer

When an installation happens a daemon installd runs. Killing a leftover installd should allow another installation to happen (and will kill any new ones that are waiting for the defunct one to finish). So,

sudo killall -1 installd

Nice aspect of this is you won't need to reboot.

share|improve this answer

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.