0

我尝试遵循其他答案,但遇到以下问题:

$ 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 10 月发布的命令行工具,如果有帮助的话……

4

1 回答 1

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
于 2012-10-17T04:39:17.300 回答