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.
运行bundle install后,我得到:
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)
有什么想法吗?
答案 0 :(得分:1)
问题是$ bundle install
失败,因此activesupport 3.2.6
未成功安装。正如您所看到的那样,here,jquery-rails 2.0.0
被拉了,这就是为什么您看到“无法在任何源中找到jquery-rails-2.0.0”错误。
打开Gemfile
并将jquery-rails
的版本更新为“2.0.1”或“2.0.2”。重新运行$ bundle install
然后一切都应该没问题。
答案 1 :(得分:1)
在山狮上安装RVM后我遇到了同样的问题
简单地运行
bundle update
解决问题!