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

后端 未结 5 1164
自闭症患者
自闭症患者 2021-02-06 16:50

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

相关标签:
5条回答
  • 2021-02-06 16:58

    If you installed rvm from root, try:

    source /usr/local/rvm/scripts/rvm
    
    0 讨论(0)
  • 2021-02-06 17:00

    The scripts folder is inside the zipped directory, so first we need to extract it and then run the command. Do the following things.

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

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

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

    And you are done.

    0 讨论(0)
  • 2021-02-06 17:02

    Try looking in /usr/local/rvm instead. You're root, it installs differently as root.

    Are you sure you want to install RVM as root? It's typically a user thing.

    0 讨论(0)
  • 2021-02-06 17:04

    me too got the same issue and get it resolved by simply changing my user from root to another normal user, i'm using ubuntu subsystem in windows 10

    0 讨论(0)
  • 2021-02-06 17:09

    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
    
    0 讨论(0)
提交回复
热议问题