2012-10-16 167 views
0

我嘗試以下這個other answer,但我得到了以下問題:山獅安裝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. 

有沒有別的東西,我做錯了什麼?我使用蘋果命令行工具的10月發佈,如果這能幫助...

+1

你看看,如果'在/ usr/local/bin目錄/ GCC-4.2'實際上呢? –

+0

你是否按照錯誤告訴讀了'rvm mount'? – Mab879

+0

下面是我在運行'rvm mount'時看到的內容:「給定的路徑''不是指向紅寶石安裝或已經安裝。」 –

回答

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