0

This is the error after I run bundle install in rails. I'm using rails 4. I already followed the instruction that given but nothings happen.


Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/has_scope-0.6.0.rc.gem)
An error occurred while installing has_scope (0.6.0.rc), and
Bundler cannot continue.
Make sure that `gem install has_scope -v '0.6.0.rc'` succeeds
before bundling.

then, this is the gemfile

gem 'activeadmin', github: 'gregbell/active_admin'
gem "meta_search"
gem 'bourbon', '3.2.1'
gem 'has_scope', '0.6.0.rc'

Thank you!

infused
  • 24,000
  • 13
  • 68
  • 78
Pepeng Agimat
  • 157
  • 2
  • 14
  • Did you do what the error told you? `gem install has_scope -v '0.6.0.rc'`? Works here. RubyGems' server isn't always the greatest. – Nick Veys Dec 09 '14 at 23:35
  • @NickVeys Yes, I already do the suggestion of the error but nothings happen. btw, this is the error after I type the gem install has_scope -v '0.6.0.rc' ERROR: Could not find a valid gem 'has_scope' (= 0.6.0.rc), here is why: Unable to download data from https://rubygems.org/ - no such name (https://api.rubygems.org/quick/Marshal.4.8/has_scope-0.6.0.rc.gemspec.rz) – Pepeng Agimat Dec 09 '14 at 23:59
  • The gem is valid and accessible. It seems your machine is having trouble resolving rubygems.org. Can you access the rubygems.org website in your browser? – Substantial Dec 10 '14 at 00:20

1 Answers1

0

This seems to be a network problem. Try doing traceroute rubygems.org from your terminal and see if you are able to reach rubygems.org. If not try again sometime later or try a different host like http://ruby.taobao.org/. You can change the source in the Gemfile. It is usually the first line of the Gemfile, change from rubygems to the above link I gave you if traceroute does not work out.

Aravind
  • 1,391
  • 1
  • 16
  • 41