1
對,下面的代碼應該解釋一切。這是從Ubuntu的控制檯。正如你所看到的,我似乎無法更新我的rails版本。是的,在使用'sudo'之前,我遇到同樣的問題...感謝您的幫助!升級到rails 3.2.3.rc1
[email protected]:~/railsprojects/goodsounds$ gem install rails -v 3.2.3.rc1
Successfully installed rails-3.2.3.rc1
1 gem installed
Installing ri documentation for rails-3.2.3.rc1...
Installing RDoc documentation for rails-3.2.3.rc1...
[email protected]:~/railsprojects/goodsounds$ rails -v
Rails 3.2.2
更新:我認爲不知我的RVM環境可能會以某種方式有用:
[email protected]:
system:
uname: "Linux funkdified-laptop 2.6.32-37-386 #81-Ubuntu SMP Sat Dec 3 00:07:25 UTC 2011 i686 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.11.3() by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.beginrescueend.com/]"
updated: "41 minutes 4 seconds ago"
ruby:
interpreter: "ruby"
version: "1.9.3p125"
date: "2012-02-16"
platform: "i686-linux"
patchlevel: "2012-02-16 revision 34643"
full_version: "ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]"
homes:
gem: "/home/funkdified/.rvm/gems/[email protected]"
ruby: "/home/funkdified/.rvm/rubies/ruby-1.9.3-p125-HEAD"
binaries:
ruby: "/home/funkdified/.rvm/rubies/ruby-1.9.3-p125-HEAD/bin/ruby"
irb: "/home/funkdified/.rvm/rubies/ruby-1.9.3-p125-HEAD/bin/irb"
gem: "/home/funkdified/.rvm/rubies/ruby-1.9.3-p125-HEAD/bin/gem"
rake: "/home/funkdified/.rvm/gems/[email protected]/bin/rake"
environment:
PATH: "/home/funkdified/.rvm/gems/[email protected]/bin:/home/funkdified/.rvm/gems/[email protected]/bin:/home/funkdified/.rvm/rubies/ruby-1.9.3-p125-HEAD/bin:/home/funkdified/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
GEM_HOME: "/home/funkdified/.rvm/gems/[email protected]"
GEM_PATH: "/home/funkdified/.rvm/gems/[email protected]:/home/funkdified/.rvm/gems/[email protected]"
MY_RUBY_HOME: "/home/funkdified/.rvm/rubies/ruby-1.9.3-p125-HEAD"
IRBRC: "/home/funkdified/.rvm/rubies/ruby-1.9.3-p125-HEAD/.irbrc"
RUBYOPT: ""
gemset: "rails323"
gem哪個rails連接3.2.3.rc1 gem? – shingara 2012-03-29 07:47:25
funkdified @ funkdified-laptop:〜/ railsprojects/goodsounds $ gem which rails /home/funkdified/.rvm/gems/[email protected]/gems/railties-3.2.3.rc1/lib /rails.rb – Abram 2012-03-29 07:54:41
你在啓動rails命令的目錄中有Gemfile嗎? – shingara 2012-03-29 07:58:22