[英]Ruby on rails windows installed using railsInstaller fails to install gems / bundles
I have an existing project which is stored on bitbucket, and just cloned that onto my windows box. 我有一个存储在bitbucket上的现有项目,并将其克隆到我的Windows框中。
I enter the main project directory and run 我进入主项目目录并运行
rails server
I get the message: 我收到消息:
Could not find rake-10.4.1 in any of the sources
Run `bundle install` to install missing gems.
so I run bundle install - which responds: 所以我运行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.
So I run command 所以我运行命令
gem install rake -v '10.4.1'
Which responds: 哪个响应:
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)
I read some other posts and people were asked to run this command: 我读了一些其他帖子,并要求人们运行此命令:
ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
Which responds: 哪个响应:
"OpenSSL 1.0.0o 15 Oct 2014"
Please can somebody guide me as to what is wrong here! 请有人指导我这里有什么问题!
This seems to be some longstanding issue with Ruby on windows. 对于Ruby on windows,这似乎是一个长期存在的问题。
I solved it by following these windows fix instructions: 我按照这些Windows修复说明解决了它:
https://gist.github.com/fnichol/867550 https://gist.github.com/fnichol/867550
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.