当前位置 : 主页 > 编程语言 > ruby >

ruby-on-rails – 使用railsInstaller安装的Ruby on rails窗口无法安装gems / bundles

来源:互联网 收集:自由互联 发布时间:2021-06-23
我有一个存储在bitbucket上的现有项目,并将其克隆到我的 Windows框中. 我进入主项目目录并运行 rails server 我收到消息: Could not find rake-10.4.1 in any of the sourcesRun `bundle install` to install missi
我有一个存储在bitbucket上的现有项目,并将其克隆到我的 Windows框中.

我进入主项目目录并运行

rails server

我收到消息:

Could not find rake-10.4.1 in any of the sources
Run `bundle install` to install missing gems.

所以我运行bundle install – 响应:

DL is deprecated, please use Fiddle
Fetching gem 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.1.gem)
An error occurred while installing rake (10.4.1), and Bundler cannot continue.
Make sure that `gem install rake -v '10.4.1'` succeeds before bundling.

所以我运行命令

gem install rake -v '10.4.1'

哪个响应:

ERROR:  Could not find a valid gem 'rake' (= 10.4.1), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/specs.4.8.gz)

我读了一些其他帖子,并要求人们运行此命令:

ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'

哪个响应:

"OpenSSL 1.0.0o 15 Oct 2014"

请有人指导我这里有什么问题!

对于Ruby on windows,这似乎是一个长期存在的问题.

我按照这些Windows修复说明解决了它:

https://gist.github.com/fnichol/867550

网友评论