rbenv无法安装ruby

rbenv无法安装ruby,ruby,rbenv,Ruby,Rbenv,当我想用ubuntu14.04在我的计算机上安装ruby 2.0.0时。它会导致以下错误: $ rbenv install 2.0.0-p247 Downloading yaml-0.1.6.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749 Installing yaml-0.1.6... Installed ya

当我想用ubuntu14.04在我的计算机上安装ruby 2.0.0时。它会导致以下错误:

$ rbenv install 2.0.0-p247
Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /home/grant/.rbenv/versions/2.0.0-p247

Downloading ruby-2.0.0-p247.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/3e71042872c77726409460e8647a2f304083a15ae0defe90d8000a69917e20d3
Installing ruby-2.0.0-p247...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20140607140231.15470
Results logged to /tmp/ruby-build.20140607140231.15470.log

Last 10 log lines:
compiling ossl_hmac.c
compiling ossl_x509store.c
compiling ossl_pkcs12.c
compiling ossl_pkey_dh.c
compiling ossl_x509name.c
installing default openssl libraries
linking shared-object openssl.so
make[2]: Leaving directory `/tmp/ruby-build.20140607140231.15470/ruby-2.0.0-p247/ext/openssl'
make[1]: Leaving directory `/tmp/ruby-build.20140607140231.15470/ruby-2.0.0-p247'
make: *** [build-ext] Error 2

我已确认已安装了
openssl
libssl1.0.0
libssl dev
软件包。如何修复它?

这是由于读线命名不同造成的。安装2.1.2或您需要修补您的安装:

正如另一位用户所提到的,readline似乎出现了问题,可以通过重新安装软件包来修复

brew uninstall readline
brew install https://raw.githubusercontent.com/Homebrew/homebrew/0181c8a1633353affefabe257c170edbd6d7c008/Library/Formula/readline.rb
brew pin readline

其他版本有效吗?检查所有依赖项1.9.3可以成功安装,但2.0.0和2.1.0都安装失败。@dubadub谢谢,只需按照本指南安装,但安装仍然失败。