问题
I tried following this other answer, but I get the following problems:
$ export CPPFLAGS=-I/opt/X11/include
$ CC=/usr/local/bin/gcc-4.2 rvm reinstall ree-1.8.7
/Users/username/.rvm/src/ree-1.8.7-2012.02 has already been removed.
/Users/username/.rvm/rubies/ree-1.8.7-2012.02 has already been removed.
No binary rubies available for: osx/10/x86_64/ree-1.8.7-2012.02.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
You requested building with '/usr/local/bin/gcc-4.2' but it is not in your path.
Is there something else I am doing wrong? I am using the October release of Command Line Tools from Apple, if that helps...
回答1:
Ok, after some discussion on the other answer I got it to work like this...
First, install brew then do this:
brew tap homebrew/dupes
brew install apple-gcc42
Then the rest of the solution will work:
export CPPFLAGS=-I/opt/X11/include
CC=/usr/local/bin/gcc-4.2 rvm reinstall ree-1.8.7
来源:https://stackoverflow.com/questions/12923628/mountain-lion-install-rvm-ree-1-8-7