[英]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.