How can I install GCC on Mac OS X Lion without Xcode?

5,374

OSX GCC Installer

Downloading and installing the massive Xcode installer is a huge hassle if you just want GCC and related tools.

The osx-gcc-installer allows you to install the essential compilers from either pre-built binary packages or helps you create your own installer.

Share:
5,374

Related videos on Youtube

Eric Leroy
Author by

Eric Leroy

Programmer @ Yipyo Media

Updated on September 18, 2022

Comments

  • Eric Leroy
    Eric Leroy about 1 year

    I find it really hard to believe there is not a simple solution to install GCC on Mac without having to download and install more than 1 GB+ of Xcode. I found a site that helps reduce the amount of programs to be installed in the Xcode installation, but it's still a relatively large amount of disk space needed just to get this compiler up and running.

    I'm looking for a solution WITHOUT Xcode.

    • trojanfoe
      trojanfoe about 11 years
      So your only issue is the size of the download?
    • Admin
      Admin about 11 years
      yes, I have several Mac computers that I only need *nix related tools on. I don't develop with xcode, and don't care for it's tools / ide. I understand that the issue is with program dependencies, but until a second ago, I wasn't able to find any solutions.
    • juanchopanza
      juanchopanza about 11 years
      I've used macports.org in the past.
    • Admin
      Admin about 11 years
      Doesn't mac ports rely on xcode also?
    • Admin
      Admin about 11 years
      Loki, I don't think you get it. The whole point of the question is to install it without xcode. I don't like it. The thought of it taking up drive space irritates me.
    • juanchopanza
      juanchopanza about 11 years
      @EricLeroy I am not 100% sure that macports works without some xcode these days, hence I haven't posted an answer. It worked wwithout xcode with older versions of Mac OSX.
    • Admin
      Admin about 11 years
      yeah, it requires xcode: macports.org/install.php