2012-06-29 48 views
0

我將gem從ruby-1.9.2遷移到ruby-1.9.3,然後嘗試運行bundle安裝。當我這樣做時,我得到了上面的錯誤。任何線索爲什麼?Bundler錯誤 - http.rb:799:在`connect'中:SSL_set_tlsext_host_name :(OpenSSL :: SSL :: SSLError)

使用RVM 1.9.2,紅寶石1.9.3p0(2011-10-30修訂33570)[i686的Linux的],打捆1.1.4版本,以及RubyGems 1.8.24

Error stack: 
[email protected]:~/rails_projects/rails_app> bundle install 
Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler 
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! 
/home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_set_tlsext_host_name: (OpenSSL::SSL::SSLError) 
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `block in connect' 
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:54:in `timeout' 
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:99:in `timeout' 
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect' 
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:755:in `do_start' 
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:750:in `start' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/vendor/net/http/persistent.rb:224:in `connection_for' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/vendor/net/http/persistent.rb:358:in `request' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/fetcher.rb:145:in `fetch' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/fetcher.rb:173:in `fetch_dependency_remote_specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/fetcher.rb:132:in `fetch_remote_specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/fetcher.rb:70:in `specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/source.rb:234:in `block in remote_specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/source.rb:232:in `each' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/source.rb:232:in `remote_specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/source.rb:165:in `fetch_specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/source.rb:70:in `specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/lazy_specification.rb:53:in `__materialize__' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/spec_set.rb:86:in `block in materialize' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/spec_set.rb:83:in `map!' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/spec_set.rb:83:in `materialize' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/definition.rb:122:in `resolve_remotely!' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/installer.rb:48:in `run' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/installer.rb:12:in `install' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/cli.rb:220:in `install' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/vendor/thor/task.rb:22:in `run' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/vendor/thor.rb:263:in `dispatch' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/lib/bundler/vendor/thor/base.rb:386:in `start' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.4/bin/bundle:13:in `<top (required)>' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/bin/bundle:23:in `load' 
    from /home/user/.rvm/gems/ruby-1.9.3-p0/bin/bundle:23:in `<main>' 

回答

0

它看起來像你需要一些更新:

curl -L get.rvm.io | bash # get latest RVM 
rvm reload    # load installed version 
rvm autolibs enable  # enable automatic libraries installation 
rvm remove 1.9.3   # remove installed ruby 
rvm install 1.9.3   # install it again - including proper libraries 
+0

我無法確認或否認您的解決方案工作,mpapis。我用它的機器死了。但是,對於遇到此問題的任何人,我可以通過在「https://rubygems.org/」頂部的Gemfile中使用「http」而不是「https」來使捆綁器工作。 –

+0

這不適合我。 – penner

+0

更新說明 – mpapis

相關問題