我想安裝紅寶石2.2.0-dev使用rbenv到我的Ubuntu 13.10開發筆記本電腦。我已經刪除了所有以前的紅寶石和寶石安裝。現在,當我嘗試安裝紅寶石時,出現以下錯誤。rbenv安裝 - 可執行主機紅寶石是必需的
[email protected]:~/.rbenv$ rbenv install 2.2.0-dev
Cloning https://github.com/ruby/ruby.git...
Installing ruby-2.2.0-dev...
BUILD FAILED
Inspect or clean up the working tree at /tmp/ruby-build.20140119161217.4141
Results logged to /tmp/ruby-build.20140119161217.4141.log
Last 10 log lines:
/tmp/ruby-build.20140119161217.4141 ~/.rbenv
Cloning into 'ruby-2.2.0-dev'...
Checking connectivity... done
/tmp/ruby-build.20140119161217.4141/ruby-2.2.0-dev /tmp/ruby-build.20140119161217.4141 ~/.rbenv
executable host ruby is required. use --with-baseruby option.; false -C ./tool get-config_files config.guess
executable host ruby is required. use --with-baseruby option.; false -C ./tool get-config_files config.sub
configure: error: cannot run /bin/bash tool/config.sub
謝謝,我認爲可能是這種情況,但許多安裝rbenv的教程都沒有提到它,所以我想我會問。我甚至看到一些提示系統安裝不合需要的參考資料。 – markhorrocks
我跑apt-get install ruby,然後得到與rbenv一起安裝ruby的錯誤。 [code] ruby -v [/ code]現在報告1.8和1.9.1 – markhorrocks
也許你應該檢查http://gorails.com/setup/ubuntu/13.10,它並沒有說要安裝'ruby'。您可能會缺少一些其他庫,但該錯誤會顯示爲無法找到運行的紅寶石。另一件事,你可能需要在安裝'-dev'版本之前安裝'ruby-2.2.0'。 –