2012-04-16 156 views
1

的安裝不同版本我一直在關注所有關於http://beginrescueend.com/rvm/install/和說明http://beginrescueend.com/rvm/basics/RVM無法紅寶石

在我可以輸入終端「型RVM」,它說「RVM是一個函數」,所以它的應該已經正確安裝。

現在,當我像鍵入:RVM安裝Ruby-1.9.2-P318,RVM安裝1.9.2或其他任何東西,似乎運行安裝過程中,我得到了以下錯誤

Error running 'make ', please read /Users/Nick/.rvm/log/ruby-1.9.2-p318/yaml/make.log 
Error running ' ./configure --prefix=/Users/Nick/.rvm/rubies/ruby-1.9.2-p318 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/Nick/.rvm/usr ', please read /Users/Nick/.rvm/log/ruby-1.9.2-p318/configure.log 
There has been an error while running configure. Halting the installation. 
ls: /Users/Nick/.rvm/rubies/*/bin/ruby: No such file or directory 

所以我打開install.log文件,它說:

configure: error: in `/Users/Nick/.rvm/src/yaml-0.1.4': 
configure: error: no acceptable C compiler found in $PATH 
See `config.log' for more details 

沒有config.log文件。

回答

1

看起來你需要安裝的Xcode命令行工具,這樣你就可以安裝編譯RVM。我相信只要安裝Xcode就可以做到。

+0

它的確如此。格拉西亞斯 – 2012-04-17 16:51:31

4

你需要一個C編譯器,它似乎你沒有安裝或它不在你的路徑上。 XCode提供了一個,你安裝了它嗎?

檢查這個類似的問題Xcode - configure: error: no acceptable C compiler found in $PATH

+0

我運行「rvm要求」,它說爲了安裝1.9.3我必須先擁有libksba。 所以我用google搜索了一下,它說我需要自制軟件。所以現在我正在安裝自制軟件。 現在它說我需要xcode來安裝自制軟件。 大聲笑... – 2012-04-16 17:03:22

+0

哦,所以我正在下載xcode。我們將看到會發生什麼。 – 2012-04-16 17:16:55

+0

我下載了xcode命令行工具並重新運行自制醫生。錯誤信息有所改變。我得到錯誤「警告:/ usr/bin發生在/ usr/local/bin之前,這意味着系統提供的程序將被用來代替Homebrew提供的那些 以下工具存在於兩個路徑中: git 混帳cvsserver 混帳收到包 混帳殼 混帳上載檔案 混帳上傳包 gitk 考慮修改您的路徑,這樣在/ usr/local/bin目錄 是提前在/ usr/bin中的你的路徑。「 我正在下載xcode,但要花一個小時左右才能完成。 – 2012-04-17 03:12:04