ruby-on-rails – Gem :: RemoteFetcher :: FetchError:SSL_con
我正在尝试在rails上安装
ruby,但是当我尝试创建应用程序时,我仍然遇到很多错误.
这是我在Windows机器上所做的: 1)下载railsinstaller-3.0.0.exe软件
现在,当我尝试创建一个应用程序时,我遇到异常: 使用的命令是:rails new blog run bundle install DL is deprecated,please use Fiddle Fetching gem metadata from https://rubygems.org/........... Fetching additional metadata from https://rubygems.org/.. Resolving dependencies... Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake-10.4.2.gem) An error occurred while installing rake (10.4.2),and Bundler cannot continue. Make sure that `gem install rake -v '10.4.2'` succeeds before bundling. 现在我试着运行这个命令 – gem install rake -v ’10 .4.2′,我现在开始收到以下错误: E:Rails>gem install rake -v '10.4.2' ERROR: Could not find a valid gem 'rake' (= 10.4.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://rubygems.org/specs.4.8.gz) 我完全被困在这里,你可以告诉我在这个装置中犯了什么错吗?我在SO中尝试了各种选项,但我总是失败. 如果我尝试启动服务器,那么我将获得以下异常: E:Rails> cd blog E:Railsblog>rails server Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine. Run `bundle install` to install missing gems. 现在如果我运行bundle install我会收到新的错误: E:Railsblog>bundle install DL is deprecated,and Bundler cannot continue. Make sure that `gem install rake -v '10.4.2'` succeeds before bundling. 再次,如果我尝试安装rake我会得到新的异常: E:Railsblog>gem install rake -v '10.4.2' ERROR: Could not find a valid gem 'rake' (= 10.4.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://rubygems.org/specs.4.8.gz) 我在过去两天尝试这个,但我仍然无法理解我在安装时遇到的错误. 解决方法
更新您的GemFile:
从 https://rubygems.org 至 http://rubygems.org (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |