求版本控制方法 my@my-desktop:~$ rvm info
system: uname: "Linux my-desktop 3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 i686 athlon i386 GNU/Linux" system: "ubuntu/12.04/i386" bash: "/bin/bash => GNU bash,版本 4.2.24(1)-release (i686-pc-linux-gnu)" zsh: "/usr/bin/zsh => zsh 4.3.17 (i686-pc-linux-gnu)"
rvm: version: "rvm 1.16.20 (stable) by Wayne E. Seguin [email protected], Michal Papis [email protected] [https://rvm.io/]" updated: "19 days 2 hours 16 minutes 22 seconds ago"
ruby: interpreter: "ruby" version: "1.8.7" date: "2012-10-12" platform: "i686-linux" patchlevel: "2012-10-12 patchlevel 371" full_version: "ruby 1.8.7 (2012-10-12 patchlevel 371) [i686-linux]"
homes: gem: "/home/my/.rvm/gems/[email protected]" ruby: "/home/my/.rvm/rubies/ruby-1.8.7-p371"
binaries: ruby: "/home/my/.rvm/rubies/ruby-1.8.7-p371/bin/ruby" irb: "/home/my/.rvm/rubies/ruby-1.8.7-p371/bin/irb" gem: "/home/my/.rvm/rubies/ruby-1.8.7-p371/bin/gem" rake: "/home/my/.rvm/gems/ruby-1.8.7-p371@global/bin/rake"
environment: PATH: "/home/my/.rvm/gems/[email protected]/bin:/home/my/.rvm/gems/ruby-1.8.7-p371@global/bin:/home/my/.rvm/rubies/ruby-1.8.7-p371/bin:/home/my/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ruby/bin" GEM_HOME: "/home/my/.rvm/gems/[email protected]" GEM_PATH: "/home/my/.rvm/gems/[email protected]:/home/my/.rvm/gems/ruby-1.8.7-p371@global" MY_RUBY_HOME: "/home/my/.rvm/rubies/ruby-1.8.7-p371" IRBRC: "/home/my/.rvm/rubies/ruby-1.8.7-p371/.irbrc" RUBYOPT: "" gemset: "rails3.0.5"
my@my-desktop:~$ rails --version
internal:gem_prelude:1:in require': cannot load such file -- rubygems.rb (LoadError)
from <internal:gem_prelude>:1:in
'
my@my-desktop:~$
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
export UPDATE_ZSH_DAYS=13
plugins=(git)
source $ZSH/oh-my-zsh.sh
export PATH=$PATH:$HOME/.rvm/bin [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"