繁体   English   中英

使用RVM安装Rails的问题

[英]Issue Installing Rails With RVM

rvm列表显示我:

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命令如“rails s”时,他们分别给我以下错误:

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)

有任何想法吗?

问题是$ 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然后一切都应该没问题。

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

简单地跑

bundle update

解决问题!

暂无
暂无

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

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