1
votes

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 ?

1
have u installed rvm ? - sp1rs
follow the instructions here to configure rvm for your gnome-terminal - bjhaid
@sp1rs Yes I installed rvm. rvm -v rvm 1.25.22 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] - deadbug
@bjhaid I checked the link. It works..!! - deadbug
@NairG I would post it as an answer you and can accept - bjhaid

1 Answers

3
votes

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