我一直有这个错误。我使用的是Ruby 2.1.5和Rails 4.1.8。每当我运行命令时,我都会在问题标题中收到错误:
1 rails new app
2 gem install..
我运行1(rails new app),错误是:
Gem::RemoteFetcher::FetcherError::SSL_connect returned=1 erno=0 state=SSLw3.....certificate failed https://rubygems.org/gem/rake-10.4.2.gem.
An error occurred while installing rake <10.4.2> and bunler cannot continue. Make sure that gem install rake -v '10.4.2' succeeds before bundling.
我尝试运行2(gem install rake),我收到了类似的错误:
Unable to download data from https://rubygems.org/- SSL_connect returned=1 erno=0 state=SSLw3....server certificate failed.
出了什么问题?这与我的网络安全有关吗?
答案 0 :(得分:6)
找到解决方案。
gem source -r https://rubygems.org/
gem source -a http://rubygems.org/
删除安全网址,添加不安全网址。我的宝石现在正在更新而没有问题。