Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install rvm "bash /root/.rvm/scripts/rvm No such file or directory"

I want to install RVM in ubuntu and I am following these steps

root@jaskaran-Vostro-1550:/home/user_name# sudo apt-get install curl

done this successfully

root@jaskaran-Vostro-1550:/home/user_name# curl -L https://get.rvm.io | bash -s stable

done this successfully

but when I run this command

root@jaskaran-Vostro-1550:/home/user_name# source ~/.rvm/scripts/rvm

result like that

bash: /root/.rvm/scripts/rvm: No such file or directory

What's wrong in this?

like image 532
Harman Avatar asked Nov 27 '22 04:11

Harman


2 Answers

I was installing RVM on a remote server today and had the same issue. It seems that the installation was not executed by default. This is what I did to solve it:

curl -L https://get.rvm.io | bash -s stable

  # In case rvm not found
  cd ~/.rvm/archives
  tar xvzf rvm-1.26.0.tgz # or whatever RVM version you have
  cd mpapis-rvm-xxxxxxx
  ./install
  cd ..
  rm -Rf mpapis-rvm-xxxxxxxx

source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
like image 61
gobeltri Avatar answered Nov 29 '22 18:11

gobeltri


If you installed rvm from root, try:

source /usr/local/rvm/scripts/rvm
like image 22
omikes Avatar answered Nov 29 '22 19:11

omikes