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
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)
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
You should add [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
in ~/.bashrc
, and restart terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With