我通过apt-get安装了Ruby 1.8.7。然后我通过RVM安装了1.9.1。
RVM 1.9.1安装成功:
root: rvm install 1.9.1
<i>Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.1-p378 </i>
<i>/usr/local/rvm/src/ruby-1.9.1-p378 has already been extracted. </i>
<i>Configuring ruby-1.9.1-p378, this may take a while depending on your cpu(s)... </i>
<i>Compiling ruby-1.9.1-p378, this may take a while, depending on your cpu(s)... </i>
<i>Installing ruby-1.9.1-p378 </i>
<i>Installation of ruby-1.9.1-p378 is complete. </i>
<i>Updating rubygems for /usr/local/rvm/gems/ruby-1.9.1-p378@global </i>
<i>Updating rubygems for /usr/local/rvm/gems/ruby-1.9.1-p378 </i>
<i>adjusting shebangs for ruby-1.9.1-p378 (gem irb erb ri rdoc testrb rake). </i>
<i>Installing gems for ruby-1.9.1-p378 (rdoc rake). </i>
<i>Installing rdoc to /usr/local/rvm/gems/ruby-1.9.1-p378@global </i>
<i>Installing rdoc to /usr/local/rvm/gems/ruby-1.9.1-p378 </i>
<i>Installing rake to /usr/local/rvm/gems/ruby-1.9.1-p378@global </i>
<i>Installing rake to /usr/local/rvm/gems/ruby-1.9.1-p378 </i>
<i>Installation of gems for ruby-1.9.1-p378 is complete. </i>
但是,我无法让RVM切换到新版本:
root: ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
root: rvm 1.9.1
root: ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
尽管如此,它似乎安装得很好:
root: /usr/local/rvm/bin/ruby-1.9.1-p378 -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]
我也尝试将 rvm --default 设置为1.9.1,但这没有帮助。
为什么RVM无法切换到新版本?我应该为ruby = 1.9.1设置别名吗?
*运行Debian
答案 0 :(得分:1)
http://webchat.freenode.net/?channels=rvm&lt;&lt;去那里。问韦恩。
答案 1 :(得分:1)
你应该跳上#rvm irc.freenode.net,并向RVM的创建者寻求帮助,方法。他是一个超级帅哥,他会马上解决你的问题。 http://webchat.freenode.net/?channels=rvm
答案 2 :(得分:0)
我遇到过类似的问题,切换到ruby 1.9.2,这有效。因此,如果您没有令人信服的理由使用1.9.1,那么我建议
rvm install 1.9.2