我尝试使用 RVM 安装 Ruby 1.9.3。似乎它安装没有错误,但 Ruby 的版本仍然是 1.8.7。
有没有其他人遇到过这种情况?
AlexHo@server:~$ rvm install 1.9.3
Already installed ruby-1.9.3-p125.
To reinstall use:
rvm reinstall 1.9.3
AlexHo@server:~$ rvm reinstall 1.9.3
Removing /Users/AlexHo/.rvm/src/ruby-1.9.3-p125...
Removing /Users/AlexHo/.rvm/rubies/ruby-1.9.3-p125...
Removing ruby-1.9.3-p125 aliases...
Removing ruby-1.9.3-p125 wrappers...
Removing ruby-1.9.3-p125 environments...
Removing ruby-1.9.3-p125 binaries...
Fetching yaml-0.1.4.tar.gz to /Users/AlexHo/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/AlexHo/.rvm/src
Configuring yaml in /Users/AlexHo/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/AlexHo/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/AlexHo/.rvm/usr
Installing Ruby from source to: /Users/AlexHo/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
ruby-1.9.3-p125 - #fetching
ruby-1.9.3-p125 - #extracting ruby-1.9.3-p125 to /Users/AlexHo/.rvm/src/ruby-1.9.3- p125
ruby-1.9.3-p125 - #extracted to /Users/AlexHo/.rvm/src/ruby-1.9.3-p125
ruby-1.9.3-p125 - #configuring
ruby-1.9.3-p125 - #compiling
ruby-1.9.3-p125 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.17 for ruby-1.9.3-p125 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p125 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p125 - #importing default gemsets (/Users/AlexHo/.rvm/gemsets/)
Install of ruby-1.9.3-p125 - #complete
AlexHo@server:~$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]