Ruby on rails windows 使用 rails 安装程序无法安装 gems/bundle
Ruby on rails windows installed using railsInstaller fails to install gems / bundles
我有一个存储在 bitbucket 上的现有项目,我只是将其克隆到我的 windows 盒子上。
我进入主工程目录然后运行
rails server
我收到消息:
Could not find rake-10.4.1 in any of the sources
Run `bundle install` to install missing gems.
所以我 运行 捆绑安装 - 响应:
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 在 windows 上长期存在的问题。
我按照这些 windows 修复说明解决了这个问题:
我有一个存储在 bitbucket 上的现有项目,我只是将其克隆到我的 windows 盒子上。
我进入主工程目录然后运行
rails server
我收到消息:
Could not find rake-10.4.1 in any of the sources
Run `bundle install` to install missing gems.
所以我 运行 捆绑安装 - 响应:
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 在 windows 上长期存在的问题。
我按照这些 windows 修复说明解决了这个问题: