Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: /home/XXX/.rvm/scripts/rvm: No such file or directory

I just walk-through with the installation of Ruby on Rails on Ubuntu using RVM.

First I have logged in as the root user.

Then I started with the following commands.

  1. \curl -sSL https://get.rvm.io | bash -s stable --rails

    It has been installed without any error.

  2. source ~/.rvm/scripts/rvm

    When I run this command. It showing the error as bash: /home/XXX/.rvm/scripts/rvm: No such file or directory

I added the [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" command in my .bashr file.

like image 764
user3909863 Avatar asked Nov 07 '14 07:11

user3909863


2 Answers

Install RVM:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

Now you will get a success message. Then, run this command:

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

See http://rvm.io/ for more info.

like image 139
sudeep_dk Avatar answered Sep 17 '22 12:09

sudeep_dk


I think they may have moved some files around fixed with:

source /usr/share/rvm/scripts/rvm 
like image 38
kyle Avatar answered Sep 17 '22 12:09

kyle