Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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
I’m not sure if you have to, but that’s a nice way to make sure you get the operating system libraries and headers as well. (Cocoa, Carbon, etC) – Martín Marconcini Dec 10 '10 at 14:41
see this recent question on stack overflow:… – Robert S Ciaccio Dec 10 '10 at 15:08
It's worth downloading XCode if you are developing software. Ruby, Perl and Python use it any time they have to compile a native driver, which could occur any time you add a module to a language. – Greg Dec 11 '10 at 10:17
up vote 6 down vote accepted

I would highly recommend installing the developer tools. They are free from Apple.

If you really don't want Xcode after the fact, you could just remove the Application itself. You may also be able to not install any documentation, which I think also takes a bit of space.

share|improve this answer

You can use osx-gcc-installer to get GCC and related tools without installing Xcode.

Note that there might be legal problems with osx-gcc-installer, and for this reason make-gcc-without-xcode has been made as an alternative. It requires the Xcode installer package, and generates an archive with only the necessary stuff -- no Xcode.

share|improve this answer

While I would certainly suggest that you download and install the developer tools from Apple, you can obtain gcc, etc. in any number of other ways. My favorite alternative would be to obtain it from

There is a nice GUI for it here:

share|improve this answer
I thought so too, but macports requires the developer tools/xcode. see the SO question I linked above. – Robert S Ciaccio Dec 10 '10 at 15:20

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.