문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top