CrabApple Forest |

Picking The Good Ones & Crabbing About The Bad Ones

How to install Xcode (formerly Developer Tools) on Mac OS X

Thursday Apr 24, 2008

If you have any experience on Unix/Linux systems, you may notice that a few essentials seem to be missing on the Mac. In particular, you may find it difficult or impossible to compile programs.  Even something as simple as compiling a Perl module cannot be done, unless you first install Xcode, formerly known as the Developer Tools.  The following instructions will show you how to install Xcode.  Note that the screenshots are from an installation under Mac OS X Leopard but the installation under Tiger should be similar, except you will use a different version of Xcode.

The following instructions show how to install Xcode from the Web, in case you don’t have your OS X installation disk handy.  If you are using Leopard, it may be easier to install from the Leopard DVD - if you’d rather do that, insert the DVD and look inside the "Optional Installs" folder.  Do NOT click on Optional Installs.mpkg.  Hold on while we navigate the web site for those downloading Xcode, and we’ll catch up with you in a moment.  If you are using Tiger, there’s a newer version of Xcode on the Apple web site, so you should probably start there instead of using the version on the DVD.

You must first obtain the correct version of Xcode for your version of Mac OS X.  To begin, go to this URL:

http://developer.apple.com/tools/download/

This will place you on the downloads page for Xcode.  Note that there are different versions available:

 

Select the version appropriate for your version of OS X.  If you are not already logged in you will have to do so… note that an account is free if you don’t already have one:

 

Next you should be presented with the actual download page.  Select the files you want - you don’t actually need the Release Notes but they may come in handy.

 

 

Unless you have the sort of broadband connection that makes everyone else envious, go do something else for an hour or two while Xcode downloads.  If you are still on dial-up, get a friend with broadband service to download it for you, or just install the version on your install disk.

Got it downloaded? Good! Open the Xcode dmg package you just downloaded.  You will see several packages (you folks who are using the version on the DVD can begin following the instructions from here):

 

The ONLY one you want to use for this install is XcodeTools.mpkg:

 

 

Click on that icon to open it up and you will be presented with this screen:

 

Click Continue for the legal stuff…

 

Click continue again and and this pops up:

 

You can read the license (again) if you need to, but you’ll have to click "Agree" to go on.  On the next screen, DO NOT CLICK INSTALL unless you want EVERYTHING in the package. If you don’t need everything (and many users don’t), you will save significant hard drive space by being a bit selective here:

 

Click the CUSTOMIZE button… just to emphasize the point you want to click THIS BUTTON:

 

 

That, in turn, will bring up this screen:

 

 

The top checkbox (for Developer Tools Essentials) should already be checked (if not then check it).  You ALSO want to at the very least check "UNIX Development Support" as shown above (note the names will probably be truncated as shown above). Pick the selections you want, then click INSTALL.  Do NOT click "Standard Install" - that’s there in case you want to change your mind and want to install everything.  Note that you can always run this again if you decide you really need one of the components you don’t install during this session.  After you have clicked on Install, you will have to enter your password:

 

 

And once you have done that and clicked OK, should see this screen for quite some time:

 

 

Eventually you will (hopefully) see the screen you are waiting for:

 

 

And the installation of Xcode is finished! Now you should be able to compile programs or Perl modules using "make" (assuming you know what you are doing!), write programs for the Mac using Objective-C, and so on.  This article will not teach you how to do that, but at least we’ve got you started (we hope).

These instructions and graphics were adapted (with permission) from the (recently changed) instructions for the Mac version of a Perl script called CallerIDpop, which polls a Linksys or Sipura VoIP adapter or phone once per second, and when there is an incoming call it pops up a Growl notification on the screen showing caller information (and more).  It can also write a log file of calls received on the adapter.  If this is of interest to anyone, see this article on the Michigan Telephone, VoIP and Broadband blog which describes the script and offers it for download.  The download is fairly large, but that’s because it contains versions of the software (and instructions) for Mac OS X, Windows and Linux.

Related posts

1 Comment »

[...] running again. There are a few things that don’t seem to be preserved. For example, if you installed Xcode (Developer Tools) from the OS X DVD, you will probably have to do that again. But anything you have [...]

May 3rd, 2008 | 10:23 pm
Leave a Reply

Comment