简体   繁体   English

在Rails 4中安装ActiveAdmin gem时出错

[英]Error in installing ActiveAdmin gem in rails 4

This is the error after I run bundle install in rails. 我在rails中运行捆绑安装后,这是错误。 I'm using rails 4. I already followed the instruction that given but nothings happen. 我正在使用rails4。我已经按照给出的说明进行了操作,但是没有任何反应。


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 然后,这是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. 尝试从终端执行traceroute rubygems.org ,看看是否能够访问rubygems.org。 If not try again sometime later or try a different host like http://ruby.taobao.org/ . 如果稍后不能再尝试,或者尝试使用其他主机,例如http://ruby.taobao.org/ You can change the source in the Gemfile. 您可以在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. 它通常是Gemfile的第一行,如果traceroute无法解决,请从rubygems更改为我给您的上述链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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