Xcode Installation Hangs on "Running Installer Scripts"

Hi, I'm trying to install Xcode to take advantage of their gcc and make files. However, no matter what I do, Xcode installation hangs on "Running Installer Scripts". Searching on Google did not give me any help. I can't quit the process either. Here's a screen shot:
http://lh4.ggpht.com/_id4E4GFQud0/SfvsNwDdDaI/AAAAAAAACnI/23tE3vWw3vk/Snapshot%2 02009-05-02%2001-44-41.png

Could you please advice on what can possibly go wrong?
I'm running OS 10.5.6, and installing Xcode directly from the Mac OS X Disc 1 CD. In the CD document, it says Xcode Developer Tools 3.0 for Mac OS 10.5.

Thanks!

MacBook 2.2 GHz, Mac OS X (10.5.6)

Posted on May 1, 2009 11:47 PM

Reply
4 replies

May 2, 2009 1:11 AM in response to EconMac

I couldn't begin to say what can possibly go wrong. One of the first things to look at is the permissions your account has when you start the install.

If you don't find a perm problem, and if no one else responds to your thread with a magic bullet, the best medicine I know of is a "clean install". This consists of getting rid of anything that has anything to do with development and then installing from a source of known compatibility. For example, are you sure there weren't some factory installed dev tools on your system? In any case, the first failed installation may have created some files that will cause any subsequent installation to fail.

Here are some details I recently posted on the procedure: [http://discussions.apple.com/thread.jspa?messageID=9371138&#9371138].

I've never installed from a CD, and while I have no reason to doubt the CD that came with your system, I've always installed from the iPhone SDK download. For what it's worth, I have lots of confidence in that download, and it definitely knows about 11.5.6.

Even though you don't currently want the iPhone SDK, I assume you have lots of room for it and it includes the latest OS/X SDK as well as everything else you'll want for OS/X development. If you want to try it, go to [http://developer.apple.com/iphone/index.action], register and download the +iPhone SDK for iPhone OS 2.2.1+. If you really don't want the iPhone SDK on your disk, I think you can find the latest OS/X only SDK, though Xcode 3.1.2 is the only download currently featured on the front page of the Mac Dev Center (presumably because new Mac's come with the OS/X SDK). I think the iPhone SDK also has options that install only the OS/X components--but once again I can't say anything about those options from personal experience.

May 2, 2009 7:32 AM in response to RayNewbie

Thanks RayNewbie, but I'm pretty sure that this is a "clean install".

Actually, I first installed Xcode from connect.apple.com. That installation went well and did not have any problem. However, there was a problem when I called gcc in Terminal. I thought the installation was faulty, so I completely deleted it by using "sudo /Developer/Library/uninstall-devtools --mode=all". I reinstalled Xcode from connect.apple.com, this time there was the "running installer scripts" hanging.

I tried to reinstall again using the Apple CD, again, it couldn't get past "running installer scripts".

I thought I might have deleted something while uninstalling Xcode the last time. So I completely restored my system to pre-Xcode installation. Then I used Apple CD, but the same error occurs.

There is no files under Developer before I installed Xcode. It is so frustrating!

Is there anyway to get gcc and make without Xcode? Thanks.

May 2, 2009 5:40 PM in response to EconMac

Thanks for the details of what you've tried. Every detail you can remember increases the chance that someone can spot the problem.

My read is that you've documented beyond much doubt that a clean install is what you need. Restoring your system was a good try, but I don't think that would change much outside of the /system folder. Even if we think it did, the evidence you provided tells me that some files from the first Xcode installation remain. I would be looking for files created on that date and checking perms in places like the root directory, /tmp, /usr/share/sandbox, etc. I would also advise renaming /Developer as written in the +Book of the Dead+. I didn't invent that instruction; it was distilled from dozens of case histories in this forum.

You might also try one of the 3rd party tools that's out there for cleaning Macs. I've never tried any of them though, so can't make a recommendation.

Oh... erm... You did restart your Mac at some point since the problems started, right?

Re installing only gcc, have you been to the Developer Tools page at the connect.apple.com site? Select Downloads on the home page, and in the next page select Developer Tools from the lower right panel. I found 2 downloads that appear to be full gcc installers: Xcode Legacy Tools and GCC 4.2 Developer Preview 1. The other gcc downloads seem to be updates. I might try gcc 3.1 in the legacy tools. It's probably all you need, and if not you'd be good to go for an update.

Of course, you could always download directly from the gnu site, just you might need to be a rocket scientist to install one of those packages. I'm guessing it would be a learning experience. There's also something to be said for using a 3rd party installer, since it probably wouldn't be affected by whatever is stopping the Apple installer(s).

Sure hope some small part of the above turns out to be useful. But in any case, please let us know how you resolve the problem.

May 5, 2009 10:32 PM in response to RayNewbie

Hmm, I remembered searching for any remnants of Xcodes, but wasn't able to find them. My Developer folder was empty. I might need to install 3rd party software as you suggested. But it's so annoying, why doesn't the default un-installation (sudo command) does the job?

Do you happen to know how to restore Unix system in Mac to its original setting? I thought restore it would do the job, but from what you said, it doesn't.
Thanks for your opinion.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode Installation Hangs on "Running Installer Scripts"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.