Ruby 山狮安装rvm ree-1.8.7
我尝试了以下操作,但遇到以下问题:Ruby 山狮安装rvm ree-1.8.7,ruby,rvm,osx-mountain-lion,Ruby,Rvm,Osx Mountain Lion,我尝试了以下操作,但遇到以下问题: $ 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
$ 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.
我还有什么地方做错了吗?我正在使用苹果公司10月份发布的命令行工具,如果有帮助的话…好的,在讨论了另一个答案后,我得到了这样的结果 首先,安装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
您是否查看了
/usr/local/bin/gcc-4.2
是否确实存在?您是否按照错误指示运行了readrvm mount
?以下是我在运行“rvm mount”时看到的内容:“给定的路径”不是指向ruby安装,就是已经安装。”