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

I want to install RVM on ubuntu and I am doing the following steps

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

did it successfully

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

did it successfully

but when i ran this command

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

it will turn out like this

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

what's wrong with that

+4
source share
5 answers

I installed RVM on a remote server today and had the same problem. Apparently, the installation was not completed 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
+10
source

Try searching instead /usr/local/rvm. You are root, it is set differently as root.

Are you sure you want to install RVM as root? This is usually a custom thing.

+7
source

rvm root, :

source /usr/local/rvm/scripts/rvm
+4

zipped-, , . .

cd ~/.rvm/archives
tar xvzf rvm-1.26.0.tgz # or whatever RVM version you have

This will extract the folder, and there will be a folder called scripts in it. Now run the following command.

source ~/.rvm/archives/rvm-1.26.11/scripts/rvm

And you're done.

+3
source

I also had the same problem, and I solved it just changing my user from root to another regular user , I use the ubuntu subsystem in Windows 10

+1
source

Source: https://habr.com/ru/post/1534143/


All Articles