gpt4 book ai didi

ruby-on-rails - Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 读取

转载 作者:可可西里 更新时间:2023-11-01 13:40:37 26 4
gpt4 key购买 nike

我正在尝试在 Rails 上安装 ruby​​,但在尝试创建应用程序时我总是遇到很多错误。

这是我在 Windows 机器上所做的:

1) 下载railsinstaller-3.0.0.exe软件2) 在我的机器上安装了 Rails。3) 验证安装成功:

E:\Rails>ruby -v ruby 2.0.0p598 (2014-11-13) [i386-mingw32]

E:\Rails>sqlite3 --version 3.8.7.2 2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93

E:\Rails>rails -v DL is deprecated, please use Fiddle Rails 4.1.8

现在,当我尝试创建一个应用程序时,出现以下异常:

使用的命令是: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:\Rails\blog>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:\Rails\blog>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.

同样,如果我尝试安装 rake,我会得到新的异常:

E:\Rails\blog>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)

过去 2 天我一直在尝试这个,但我仍然无法理解我在安装过程中哪里出错了。

最佳答案

更新您的 GemFile:来自

https://rubygems.org

http://rubygems.org  

关于ruby-on-rails - Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 读取,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30114354/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com