Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Ubuntu server

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.10
Release:            11.10
Codename:       oneiric

When I try to install RVM for a local user I get the following:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
mkdir: cannot create directory `/usr/local/rvm': Permission denied

What is the issues here?


share|improve this question
up vote 0 down vote accepted

Use the '-k' switch to the curl command:

bash -s stable < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
share|improve this answer

As documented on official help, RVM should try to install to /usr/local/rvm if you are running installation prefixed with sudo.

If running as normal user, RVM should install to ~/.rvm

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.