Domanda

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 ?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top