20

I've got a strange error when I try to run this rvm install script (newly installed ubuntu 11.10):

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

I got this:

mkdir: cannot create directory: ”/usr/share/ruby-rvm/src”

The problem is, I want to install a per-user rvm to my $HOME, and dont understand what this script wants with /usr/share/ruby-rvm.

I need my rvm at $HOME/.rvm directory.

I've got no env variable with $rvm_ prefix, I checked.

Pengő Dzsó
  • 806
  • 7
  • 17

4 Answers4

41

You may have installed the debian packaged rvm. You can clean it first with:

$ sudo apt-get --purge remove ruby-rvm 
ravi404
  • 6,741
  • 4
  • 28
  • 39
nouh
  • 572
  • 1
  • 6
  • 10
4

In command prompt past the following lines:-

1)sudo apt-get update

2)sudo apt-get install curl

3)\curl -L https://get.rvm.io | bash -s stable

4)source ~/.rvm/scripts/rvm

5)rvm requirements

6)rvm install ruby 1.9.3

7)rvm use ruby 1.9.3

8)rvm gemset create new-rails

9)rvm use @new-rails --default

Nitin Kumar
  • 164
  • 10
2

You should follow these instruction on Ubuntu, Ruby, RVM, Rails, and You on Ryan Bigg's blog.

Mu Mind
  • 9,952
  • 4
  • 33
  • 64
Kashiftufail
  • 10,487
  • 10
  • 41
  • 78
0

As it is said by error message:

To continue in insecure mode run 'echo insecure >> ~/.curlrc'.

Just run echo insecure >> ~/.curlrc. Then rerun;

curl -L https://get.rvm.io | bash
jeremy
  • 9,455
  • 4
  • 36
  • 57
msdundar
  • 379
  • 3
  • 19