2013-04-09 71 views
1

gem似乎無法在我的Linux上安裝任何gem,我不確定問題的原因。 下面是安裝mongo gem時的調試信息,它得到了大量重複的「OpenSSL :: SSL :: SSLError」錯誤信息,任何想法可能是錯誤的?安裝gems時出現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

我有類似的問題,以下爲我工作:

$ 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 
相關問題