当我运行 rails 应用程序时,我运行的是旧版本的 ruby:
[2012-06-04 16:34:29] INFO ruby 1.8.7 (2010-08-16) [x86_64-linux]
我想运行 ruby 1.9.2。我安装了 rvm 并选择了该 ruby 版本。这是 rvm 列表的输出:
rvm rubies
=* ruby-1.9.2-p318 [ x86_64 ]
ruby-1.9.3-p125 [ x86_64 ]
但是,它不起作用。这是我的路径:
/usr/local/bin:/usr/bin:/bin:/home/charlie/.rvm/bin:/var/lib/gems/1.8/bin/:/usr/local/bin/:/usr/local/rvm/lib/:/vendor/bundle/
这是我的.bashrc:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
PATH="${PATH}:/var/lib/gems/1.8/bin/"
PATH="${PATH}:/usr/local/bin/"
PATH="${PATH}:/usr/local/rvm/lib/"
PATH="${PATH}:/vendor/bundle/"