Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install a few CPAN modules in OSX.

It filed since the module I want requires make and gcc to be installed. A quick google on the subject tells me that I need to install "Apple developer tools".

Do I really have to install the entire Xcode package (it's a 3GB download) just to get make and gcc?

share|improve this question
up vote 2 down vote accepted

It's the easiest way.

Note that you might not need to download it - some Macs come with a Developer Tools CD, or a developer tools package on one of your install DVDs (usually the second one, with the bundled applications).

share|improve this answer
I have a Macbook Air - It came with a restore-ssd, nothing else. – Nifle Dec 10 '10 at 14:00
Have you had a look on there? It's the equivalent of the install DVDs, and I'd be surprised if the dev tools weren't on there somewhere. On the DVDs at least there's usually a package in the root or an "additional software" folder - I see no reason that they wouldn't be on there somewhere. – Scott Dec 10 '10 at 15:15
And the installer might be on the hard drive already, I've seen that on a few Macs. Look in the Application folder for something that looks like developer and see if there is an installer inside. – David Rouse Dec 10 '10 at 15:46
This is slightly orthogonal to this question, but for future Googlers. The Xcode installer bundles together a bunch of (smaller) .pkg packages. In theory, you should be able to open Xcode and install only what you really want from it. See this link, for example, – Telemachus Dec 20 '10 at 17:59

Your Answer


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.