Reputation: 381
I installed RVM and Ruby and executed ruby -v
. It executed correctly by showing the version but when I try it in a new terminal it is returning an error:
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: sudo apt-get install <selected package>
If I run source /home/prabhakaran/.rvm/scripts/rvm
in each terminal I open it is running.
What is the problem, and how can I solve it?
Upvotes: 0
Views: 200
Reputation: 5866
You have to make sure your terminal starts up a login shell for rvm
to work. Are you using a GNOME terminal by any chance? By default, those do not start with a login shell, but you can change that under profile settings.
Upvotes: 2