使用rbenv BUILD FAILED安装ruby-2.0.0-p0

前端之家收集整理的这篇文章主要介绍了使用rbenv BUILD FAILED安装ruby-2.0.0-p0前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
所以我尝试在我运行在VirtualBox上的新ubuntu 12.04LTS上通过rbenv安装 ruby.

我从https://github.com/sstephenson/rbenv获得了rbenv,从https://github.com/sstephenson/ruby-build获得了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函数将为您安装的所有 requirements.其中一些(如sqlite3)假设您最终想要安装Rails,但如果您不需要它们则无害.
原文链接:/ruby/270450.html

猜你在找的Ruby相关文章