简体   繁体   中英

Error in installing ActiveAdmin gem in rails 4

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM