致电
rails new project
进程一直持续到我打开捆绑安装。那时:
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.
我可以使用gem install手动安装gem并再次启动rails new,并为下一个gem重复错误。我最终手动安装每个宝石。
我使用rvm 1.13.0单用户。
答案 0 :(得分:6)
您是否安装了OpenSSL?您没有在Ubuntu(或其他基于Debian的发行版)上提及您的操作系统:
sudo apt-get install openssl
如果失败,请尝试http://railsapps.github.com/openssl-certificate-verify-failed.html
答案 1 :(得分:5)
试试这个。
rvm pkg install openssl
rvm reinstall 1.9.2 --with-openssl-dir=$rvm_path/usr