Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trouble with installing rvm in ubuntu

Tags:

ruby

ubuntu

rvm

I just installed rvm in my machine using the following command

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

and got this in my terminal

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

When I go to /home/rahul/.rvm/, I am able to see all the necessary folders but when I give 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 it?

EDIT

I have 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
like image 586
Rahul Avatar asked Dec 19 '11 04:12

Rahul


3 Answers

actually after installation of rvm , you have to run the script. i was stuck in the same level as you are, than in terminal i read this line:

" To start using RVM you need to run source /usr/local/rvm/scripts/rvm "
so place this command (source /usr/local/rvm/scripts/rvm) in terminal and enter

and after that :

type rvm | head -1
rvm is a function (this you will see hopefully)
like image 129
R T Avatar answered Nov 13 '22 09:11

R T


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

Did you follow the diagnostics on the RVM install page, in particular the section "Troubleshooting Your Install", checking to see if RVM is known as a function? You should see something like this:

user$ type rvm | head -1
rvm is a function
like image 34
the Tin Man Avatar answered Nov 13 '22 08:11

the Tin Man


You should add [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" in ~/.bashrc, and restart terminal.

like image 35
avy Avatar answered Nov 13 '22 08:11

avy