无法在RVM上切换其他ruby版本

时间:2013-03-11 19:12:12

标签: ubuntu rvm ubuntu-12.04 konsole

我在Ubuntu 12.04上有Yakuake而我之前遇到this problem,它已经解决了。但现在我无法在RVM上从Ruby切换到JRuby。当我运行rvm use jruby时,它会抛出此错误:

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

1 个答案:

答案 0 :(得分:3)

感谢Mikey,将source ~/.rvm/scripts/rvm添加到.zshenv - 因为在Yakuake中使用zsh - 摆脱了问题。