Ruby on rails 问题:使用RVM安装导轨
rvm列表显示:Ruby on rails 问题:使用RVM安装导轨,ruby-on-rails,rvm,Ruby On Rails,Rvm,rvm列表显示: ruby-1.9.3-head [ x86_64 ] ruby-1.9.3-p125 [ x86_64 ] ruby-1.9.3-p194 [ x86_64 ] rails服务器仅在ruby-1.9.3-head上受支持,但在p125或p194上不受支持,它们在运行rails命令(如“rails s s”)时分别给我以下错误: 运行bundle安装后,我得到: Fetching gem metadata from https://rubygems.org/.....
ruby-1.9.3-head [ x86_64 ]
ruby-1.9.3-p125 [ x86_64 ]
ruby-1.9.3-p194 [ x86_64 ]
rails服务器
仅在ruby-1.9.3-head上受支持,但在p125或p194上不受支持,它们在运行rails命令(如“rails s s”)时分别给我以下错误:
运行bundle安装后,我得到:
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)
有什么想法吗?问题是
$bundle安装失败,因此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
然后一切都会好起来。在mountain lion上安装RVM后,我遇到了同样的问题
简单运行
bundle update
解决问题 很难说问题出在哪里,请参考-获取有关设置问题格式的提示-因此更清楚什么是错误/命令/文本这是危险的,将更新您的所有gem。更安全的方法是捆绑更新jquery rails
,然后只更新jquery rails及其依赖项。
bundle update