1

I have Yakuake on Ubuntu 12.04 and I've faced this problem before, it's already solved. But now I can't switch from Ruby to JRuby on RVM. When I run rvm use jruby it throws this error:

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.
Community
  • 1
  • 1
ekremkaraca
  • 1,453
  • 2
  • 18
  • 37
  • 1
    try `source ~/.rvm/scripts/rvm`, I had this problem the other day - I think I ended up `rvm implode`'ing and starting from scratch – Mikey Mar 11 '13 at 19:16
  • it works, but each time, I need to enter this command, probably I should add it to my `.zshenv` – ekremkaraca Mar 11 '13 at 19:21

1 Answers1

3

Thanks to Mikey, adding source ~/.rvm/scripts/rvm to .zshenv -because of being used zsh in Yakuake- gets rid of the problem.

Community
  • 1
  • 1
ekremkaraca
  • 1,453
  • 2
  • 18
  • 37