当我bundle install
在Centos 5.5上运行Rails 3项目时,它失败并出现错误:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3
read server certificate B: certificate verify failed
(https://bb-m.rubygems.org/gems/multi_json-1.3.2.gem)
An error occured while installing multi_json (1.3.2), and Bundler cannot continue.
Make sure that `gem install multi_json -v '1.3.2'` succeeds before bundling.
当我尝试手动安装gem时(通过gem install multi_json -v '1.3.2'
),它可以工作。其他几个宝石也会发生相同的问题。我使用RVM(1.12.3),ruby 1.9.2,bundler 1.1.3。
如何解决?
source "https://rubygems.org''
Gemfile并运行'gem update --system'来解决此问题。您可以在此处找到更多信息。