安装gems时OpenSSL :: SSL :: SSLError

时间:2013-04-09 15:19:00

标签: rubygems openssl

宝石似乎无法在我的Linux上安装任何宝石,我不知道是什么原因导致了这个问题。 下面是安装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

1 个答案:

答案 0 :(得分: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