Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My problem is simple, I would like to get the OSX/BSD version of the GCC and G++ compilers from the GNU.org website. However after some research (as described below) I learned that Apple uses LLVM and gcc is a symbolic link to llvm-cc while g++ is a symbolic link to llvm-g++.

I also learned Apple were stupid enough to remove these compilers with no reasonable explanation (Literally, nobody can give a valid reason for this, there is no such thing). The other thing I learned is Apple uses the LLVM (as previously explained).

  • I have searched the web to try and learn how to do this, and nothing is being useful. Only people talking about Xcode, or other long-winded installing of Apps and running commands and installing other resources.

  • XCODE is NOT the solution i'm looking for as Xcode does not automatically come with the compiler, but requires additional installations and things.

My question

  • I want to learn, I want to understand;
  • I do NOT want the "easy way" or the "use the application way";
  • I want to do it the old-school way, the download source from GNU, configure/make/make install - funnily enough, Apple has removed these too - What are they thinking?

My current attempt

I downloaded the LLVM source from the following location: Source: http://llvm.org/releases/download.html#3.3 Download: Clang Binaries for Mac OS X (79M) (.sig)

I then extracted the contents of this directory, in my Downloads directory: $ tar -xzpf clang+llvm-3.3-x86_64-apple-darwin12.tar.gz

I have tried to read the Getting Started Guide, which says 'Read the documentation' I cannot find this documentation, not in the downloaded libraries or online.

share|improve this question
    
If you want to use gcc et al, just use MacPorts. You'll need XCode and the command-lines tools to bootstrap the install, but after that you can live in llvm-free style... –  MattDMo Jul 25 '13 at 1:47

1 Answer 1

Apple has changed the way that this works now (you don't have to install all 1.7 GB of XCode).

If you are willing to register for a free developer account, you can get just the command-line tools installer from http://developer.apple.com/downloads

share|improve this answer

Your Answer

 
discard

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.