2017-10-21 41 views
0
jonsdirewolf:~/workspace $ bundle install 
Could not find gem 'roo (~> 2.7.0)' in any of the gem sources listed in your Gemfile. 
Run `bundle install` to install missing gems. 

我的Gemfile:不能在任何的在你的Gemfile中列出的寶石來源找到寶石

source "http://rubygems.org" 
ruby "2.4.0" 
# gem "rails" 
gem "mysql2" 
gem "activerecord" 
gem 'byebug' 
gem 'write_xlsx' 
gem 'mechanize' 
gem 'pry' 
gem 'pry-byebug' 
gem "roo", "~> 2.7.0" 

我該怎麼辦?

+0

這可能不是問題,但是你可以嘗試'源代碼https://rubygems.org「,用'https'代替'http'嗎? – hoffm

回答

0

rubygems.org力量HTTPS:

> curl -I http://rubygems.org 
HTTP/1.1 301 Moved Permanently 
Content-Type: text/html 
Location: https://rubygems.org/ 

,我的直覺是,捆綁可能不遵循重定向。

所以解決將是使用

source "https://rubygems.org" 

以 「https」 而不是 「HTTP」。

相關問題