문제

My configurations
Ubuntu 14.04 amd64 I followed this tutorial to install Ruby

  1. Successfully installed ruby.
  2. Closed the Terminal.
  3. Checking

ruby -v

shows

The program 'ruby' can be found in the following packages:
 * ruby
 * ruby1.8
Try: sudo apt-get install <selected package>

4.Runs the command

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

from the tutorial and then check with ruby -v and it works !!( Shows the version )

5.I tried a many times by closing the terminal and typing ruby -v command every time it shows ruby is not installed and typed the same command from the tutorial then it detect the ruby.

How can avoid this ?

도움이 되었습니까?

해결책

The instructions on making rvm work in gnome-terminal can be found here, quoting the instructions:

For RVM to work properly, you have to set the 'Run command as login shell' checkbox on the Title and Command tab inside of gnome-terminal's Settings page

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