2010-07-01 61 views
0

我有一箇舊版本的Ubuntu服務器,運行在版本2.3.5上的Rails應用程序,我想轉到2.3.8版本。服務器似乎不知道有可用的更新,無論多少次,我跑了「寶石更新」或「寶石更新--system」或「update_rubygems」爲什麼我的Ubuntu服務器不安裝Rails 2.3.8?

[email protected]:~# gem install rails -v 2.3.8 
ERROR: could not find gem rails locally or in a repository 
[email protected]:~# gem install rails 
Successfully installed rails-2.3.5 
1 gem installed 
Installing ri documentation for rails-2.3.5... 
Installing RDoc documentation for rails-2.3.5... 

RubyGems的1.3.5已安裝。

我不記得在進行升級時不得不爲我的任何其他服務器做任何特殊的事情。

任何想法?

+0

嘗試'gem install rails --source http:// ruby​​gems.org' with'--source'並且沒有'-v'。 – Adrian 2010-07-01 19:55:30

+0

工作,阿德里安!謝謝!你能否做出答案,以便將其標記爲已接受? – 2010-07-01 20:07:31

+0

我做到了。謝謝! :) – Adrian 2010-07-01 22:35:49

回答

1

嘗試:

gem install rails --source http://rubygems.org 

與--source和沒有-v參數。

相關問題