简体   繁体   English

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

[英]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.

相关问题 使用railsinstaller for windows在rails上安装ruby - installation of ruby on rails using railsinstaller for windows 如何在Windows上完全卸载ruby on rails(使用RailsInstaller安装)? - How can I uninstall ruby on rails completely on Windows (installed using RailsInstaller)? 使用RailsInstaller后捆绑安装失败 - bundle install fails after using RailsInstaller Windows上的railsinstaller 2.2.1失败 - railsinstaller 2.2.1 fails on windows 用于ruby> 1.9.3的Windows 7的railsinstaller - railsinstaller for windows 7 with ruby > 1.9.3 我无法在Windows上安装Rails(从railsinstaller),出现此错误 - I was unable to install Rails (from railsinstaller) on windows and got this error 为什么带有RailsInstaller的Windows 7上的Rails 5.0从gems目录呈现index.html.erb视图? - Why Rails 5.0 on Windows 7 with RailsInstaller is rendering index.html.erb view from the gems directory? Rails安装程序C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:353:in`kill':无效参数(Errno :: EINVAL) - Rails Installer C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:353:in `kill': Invalid argument (Errno::EINVAL) 不能在Rails 2.3.8和Ruby 1.8.7中安装gem? - Not Able to install gems in Rails 2.3.8 & Ruby 1.8.7? Ruby on Rails安装失败 - Ruby on Rails Install Fails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM