2012-08-09 93 views
0

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只支持紅寶石1.9.3頭,但不能在P125或P194中,誰給我下面的錯誤,分別運行時,軌道指揮像「軌道的」:

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/[email protected]/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

很難說出什麼問題,請參考http://stackoverflow.com/editing-help - 關於格式化問題的提示 - 所以更清楚什麼是錯誤/命令/文本 – mpapis 2012-08-09 19:03:19

回答

1

問題是$ bundle install失敗,因此activesupport 3.2.6未成功安裝。正如你可以看到herejquery-rails 2.0.0被抽出,這就是爲什麼你看到「在任何來源找不到jQuery-rails-2.0.0」的錯誤。

打開Gemfile並將版本jquery-rails更新爲「2.0.1」或「2.0.2」。重新運行$ bundle install然後一切都會好的。

1

我有同樣的問題在山獅安裝RVM後

只需運行

bundle update 

來解決這個問題!

+0

這很危險,將更新所有的寶石。一個更安全的路線是'捆綁更新jquery-rails',那麼你只會更新jquery-rails及其依賴項。 – mraaroncruz 2012-10-19 14:33:42