Ruby-on-rails – bash: /home/XXX/.rvm/scripts/rvm: No such file or directory

rubyruby-on-railsrvm

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.

Best Answer

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.