Problem installing rvm in ubuntu

I just installed rvm on my computer using the following command

bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

and got it in my terminal

Installation of RVM to /home/rahul/.rvm/ is complete.

When I go to /home/rahul/.rvm/, I can see all the necessary folders, but when I provide the rvm command in the terminal, I get this error

 rvm --version
No command 'rvm' found, but there are 19 similar ones
rvm: command not found

How can i fix this?

EDIT

I also added the following lines in my bashrc

if [[ -n "$PS1" ]]; then
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
fi
+5
source share
4 answers

Did you reload the shell or open a new terminal window?

Did you follow the diagnostics on the RVM installation page , in particular in the section “Installation troubleshooting”, checking if the RVM is known as a function? You should see something like this:

user$ type rvm | head -1
rvm is a function
+8

rvm, script. , , :

" RVM, source /usr/local/rvm/scripts/rvm"
(source /usr/local/rvm/scripts/rvm)

:

type rvm | head -1
rvm is a function (this you will see hopefully)
+13

You must add [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"in ~/.bashrcand restart the terminal.

+4
source

Open a terminal, go to Edit> Profile Preferencesto the tab Title and Commandand check Run command as login shell.

Learn tutorial

0
source

All Articles