2013-03-11 78 views
1

我在Ubuntu 12.04上有Yakuake,而我之前遇到过this problem,它已经解决了。但是现在我无法在RVM上从Ruby切换到JRuby。当我运行rvm use jruby它抛出这个错误:无法在RVM上切换另一个红宝石版本

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

尝试'源〜/ .rvm/scripts/rvm',我前几天有这个问题 - 我想我结束了'rvm implode''ing并从头开始 – Mikey 2013-03-11 19:16:49

+0

它的工作原理,但是每次都需要输入这个命令,可能我应该将它添加到我的'.zshenv'中 – ekremkaraca 2013-03-11 19:21:58

回答

3

感谢Mikey,加入source ~/.rvm/scripts/rvm.zshenv - 因为正在使用zsh在Yakuake-摆脱这一问题的。