"bundle install"会在每个gem上导致Gem :: RemoteFetcher :: FetchError

ard*_*den 7 gem openssl ruby-on-rails bundler rvm

打电话的时候

rails new project
Run Code Online (Sandbox Code Playgroud)

这个过程一直持续到我打包捆绑安装.在那时候:

identical  vendor/plugins/.gitkeep
         run  bundle install
Fetching gem metadata from https://rubygems.org/.........

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=unknown state: sslv3 alert handshake failure (https://d2chzxaqi4y7f8.cloudfront.net/gems/rake-0.9.2.2.gem)
An error occured while installing rake (0.9.2.2), and Bundler cannot continue.
Make sure that `gem install rake -v '0.9.2.2'` succeeds before bundling.
Run Code Online (Sandbox Code Playgroud)

我可以使用gem install手动安装gem并再次启动rails new,并为下一个gem重复错误.我最终手动安装每个宝石.

我使用rvm 1.13.0单用户.

Gaz*_*ler 6

你安装了OpenSSL吗?你没有提到你的操作系统,但在Ubunutu(或其他基于Debian的发行版)上你做了:

sudo apt-get install openssl
Run Code Online (Sandbox Code Playgroud)

如果做不到这一点,请尝试http://railsapps.github.com/openssl-certificate-verify-failed.html


use*_*677 5

试试这个.

rvm pkg install openssl
rvm reinstall 1.9.2 --with-openssl-dir=$rvm_path/usr
Run Code Online (Sandbox Code Playgroud)