0

rvm list 显示:

ruby-1.9.3-head [ x86_64 ]  
ruby-1.9.3-p125 [ x86_64 ]  
ruby-1.9.3-p194 [ x86_64 ]

rails server仅在 ruby​​-1.9.3-head 上受支持,但在 p125 或 p194 上不受支持,当运行诸如“rails s”之类的 rails 命令时,它们分别给我以下错误:

p125: Could not find activesupport-3.2.6 in any of the sources
Run `bundle install` to install missing gems.

运行捆绑安装后,我得到:

Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Could not find jquery-rails-2.0.0 in any of the sources

p194: /$usr_path/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find activesupport-3.2.6 in any of the sources (Bundler::GemNotFound)

有任何想法吗?

4

2 回答 2

1

在山狮上安装 RVM 后我遇到了同样的问题

只需运行

bundle update

解决问题!

于 2012-08-26T14:29:54.477 回答
1

问题是$ bundle install失败了,所以activesupport 3.2.6没有成功安装。正如您在此处看到的,jquery-rails 2.0.0被猛拉,这就是为什么您会看到“在任何来源中都找不到 jquery-rails-2.0.0”错误。

打开Gemfile并将版本更新jquery-rails为“2.0.1”或“2.0.2”。重新运行$ bundle install然后一切都应该没问题。

于 2012-08-10T12:15:19.323 回答