【发布时间】:2012-10-23 08:01:19
【问题描述】:
如果我 checkout 或 fork the rails project on github,在运行 bundle install 时会收到一个错误,即找不到 sprockets-rails。如何安装这些 gem?
new-host-4:rails scott$ bundle install
Updating git://github.com/rails/arel.git
Updating git://github.com/brynary/rack-test.git
Updating git://github.com/rails/jquery-rails.git
Updating git://github.com/rails/coffee-rails.git
Updating git://github.com/rails/journey.git
Updating git://github.com/rails/activerecord-deprecated_finders.git
Updating git://github.com/rails/sprockets-rails.git
Updating git://github.com/fxn/sdoc.git
Fetching gem metadata from https://rubygems.org/.
Error Bundler::HTTPError during request to dependency API
Fetching full source index from https://rubygems.org/
Could not find gem 'sprockets-rails (~> 2.0) ruby', which is required by gem 'rails (>= 0) ruby', in any of the sources.
【问题讨论】:
-
您是在尝试安装 Rails 4.0,还是最新的 Rails stable?
-
@JesseWolgamott - 只是结帐github.com/rails/rails.git 我猜是rails 4.0?我也可以尝试一个稳定的分支。我如何获得最新的工作?
-
是的,那是 Rails 4.0,还没有发布...你能描述一下你想要完成什么吗?
-
有几个错误我想看看是否可以修复。
标签: ruby-on-rails ruby-on-rails-3 gem ruby-on-rails-3.2 bundler