problem in RVM installation

I solved it by changing the following

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

into

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

The user needs access to the subdir. /usr/local


You probably have (or had) a system-wide installation of RVM. That can be due installing it through a package system like apt-get on Ubuntu or pacman on Arch Linux (both have rvm packages).

Check your environment variables:

> env | grep rvm_path

If you have it, then unset it and try to install again:

> unset rvm_path
> curl -sSL https://get.rvm.io | bash -s stable

BEWARE! If you still have rvm installed system-wide, this can give you unpredictable results, make sure you have it uninstalled before doing that.

If you have it already uninstalled and rvm_path is still there, maybe you can log out and log in again to remove them from the environment (or just restart the computer).

Tags:

Rvm