Mountain Lion安装rvm ree-1.8.7

我尝试了这个其他答案 ,但我遇到了以下问题:

$ 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. 

还有别的我做错了吗? 我正在使用Apple发布的十月发布的命令行工具,如果这有帮助…

好的,经过对其他答案的一些讨论,我得到了这样的工作……

首先,安装brew然后执行以下操作:

 brew tap homebrew/dupes brew install apple-gcc42 

然后其余的解决方案将工作:

 export CPPFLAGS=-I/opt/X11/include CC=/usr/local/bin/gcc-4.2 rvm reinstall ree-1.8.7