Mountain Lion安装rvm ree-1.8.7

时间:2012-10-16 21:22:50

标签: ruby rvm osx-mountain-lion

我尝试了这个other answer,但我遇到了以下问题:

$ 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的十月发布的Command Line Tools,如果这有帮助的话......

1 个答案:

答案 0 :(得分:1)

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

首先,安装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