2

gem 似乎无法在我的 Linux 上安装任何 gem,我不确定问题的原因。下面是安装 mongo gem 时的调试消息,它收到大量重复的“OpenSSL::SSL::SSLError”错误消息,知道可能出了什么问题吗?

$ gem install --debug mongo 

Exception `Gem::LoadError' at /home/user/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296 - Could not find 'rdoc' (>= 0) among 8 total gem(s)
Exception `Errno::EEXIST' at /home/user/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:323 - File exists - /home/user/.gem/specs/rubygems.org%443
Exception `OpenSSL::SSL::SSLError' at /home/user/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/openssl/buffering.rb:174 - read would block
Exception `OpenSSL::SSL::SSLError' at /home/user/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/openssl/buffering.rb:174 - read would block
4

1 回答 1

1

我有类似的问题,以下对我有用:

$ rvm remove 2.0.0 # get rid of unsuccessful installation
$ rvm get head --autolibs=3 # get the latest RVM and build required libs
$ rvm requirements # just in case, install all other required stuff
$ rvm install ruby-2.0.0
$ rvm --default use ruby-2.0.0
于 2013-09-07T19:03:16.887 回答