![](/img/trans.png)
[英]rbenv build failed on Ubuntu 14.04. Must use ruby 2.0.0-p451
[英]Installing ruby-2.0.0-p0 with rbenv BUILD FAILED
所以我嘗試在我運行在VirtualBox上的新ubuntu 12.04LTS上通過rbenv安裝ruby。
我從rbenv https://github.com/sstephenson/rbenv和紅寶石打造https://github.com/sstephenson/ruby-build 。
然后我運行以下但構建失敗:(
rbenv install 2.0.0-p0
Downloading ruby-2.0.0-p0.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
Installing ruby-2.0.0-p0...
BUILD FAILED
Inspect or clean up the working tree at /tmp/ruby-build.20130506102349.2564
Results logged to /tmp/ruby-build.20130506102349.2564.log
Last 10 log lines:
installing default gems: /home/shivin/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
bigdecimal 1.2.0
io-console 0.4.2
json 1.7.7
minitest 4.3.2
psych 2.0.0
rake 0.9.6
rdoc 4.0.0
test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
任何幫助,將不勝感激。 如果您需要更多詳細信息,請與我們聯系。 謝謝!
你將需要libssl-dev
。 為了獲得最佳結果,請安裝rvm autolibs函數將為您安裝的所有要求 。 其中一些(如sqlite3
)假設您最終想要安裝Rails,但如果您不需要它們則無害。
很可能你需要openssl擴展作為先決條件:
sudo apt-get install openssl
應該訣竅。 之后重新啟動您的RBENV安裝。
遇到同樣的問題。 moschop對線程的建議有效!
sudo apt-get install libssl-dev
然后
rbenv install 2.0.0-p247
每次安裝Ruby版本或gem時都必須重新進行重新掃描
rbenv rehash
制作Ruby版本默認值:
rbenv global 2.0.0-p247
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.