Ruby on rails Gem::RemoteFetcher::FetchError:尝试更新到Rails版本4.2.2时
我从头开始构建一个新的应用程序,它需要rails版本4.2.2(目前已成功安装rails-V4.1.5) 在将Gemfile中的rails gem更新为/Gemfile中的rails版本4.2.2后,我使用“bundle update rails”进入终端,但收到以下错误:Ruby on rails Gem::RemoteFetcher::FetchError:尝试更新到Rails版本4.2.2时,ruby-on-rails,ruby,json,Ruby On Rails,Ruby,Json,我从头开始构建一个新的应用程序,它需要rails版本4.2.2(目前已成功安装rails-V4.1.5) 在将Gemfile中的rails gem更新为/Gemfile中的rails版本4.2.2后,我使用“bundle update rails”进入终端,但收到以下错误: Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certifica
Gem::RemoteFetcher::FetchError: SSL_connect
returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
(https://rubygems.org/gems/json- 1.8.3.gem)
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
我已经测试过但失败的方法:
1) 正在尝试在Gemfiles中安装json-V1.8.3
2) 更新Rails和Json的Gemfile.lock(最初设置为早期版本,但现在读取Rails(=4.2.2)和activesupport(4.1.5)
i18n(~>0.6,>=0.6.9)
json(~>1.8,>=1.8.3)
3) 捆绑安装也会产生以下错误:
Bundler could not find compatible versions for gem "json":
In Gemfile:
sass-rails (~> 4.0.3) ruby depends on
sprockets-rails (~> 2.0) ruby depends on
activesupport (>= 3.0) ruby depends on
json (>= 1.8.3, ~> 1.8) ruby
uglifier (>= 1.3.0) ruby depends on
json (1.8.1)
4) gem安装导轨-v 4.2.2(进入终端)
我应该怎么做才能简单地更新这个应用程序的rails版本
ERROR: Could not find a valid gem 'rails' (= 4.2.2), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect
returned=1 errno=0 state=SSLv3 read server certificate B: certificate
verify failed (https://api.rubygems.org/specs.4.8.gz)