Install ruby-rvm on Ubuntu 11.10 with ruby โ€‹โ€‹1.9.3

rvm installs correctly via: sudo apt-get install ruby-rvm

When I try to install ruby โ€‹โ€‹1.9.3, do I get these errors?

anthony@SnakeDoc :~$ rvm install 1.9.3 mkdir: cannot create directory `/usr/share/ruby-rvm/gems/ruby-1.9.3-p0': Permission denied Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... ruby-1.9.3-p0 - #fetching ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /usr/share/ruby-rvm/src/ruby-1.9.3-p0 /usr/share/ruby-rvm/scripts/functions/utility: line 142: /usr/share/ruby-rvm/log/ruby- 1.9.3-p0/extract.log: Permission denied /usr/share/ruby-rvm/scripts/functions/utility: line 148: /usr/share/ruby-rvm/log/ruby- 1.9.3-p0/extract.log: Permission denied ERROR: Error running 'bunzip2 < '/usr/share/ruby-rvm/archives/ruby-1.9.3-p0.tar.bz2' | tar xf - -C /usr/share/ruby-rvm/tmp/rvm_src_23435', please read /usr/share/ruby- rvm/log/ruby-1.9.3-p0/extract.log ERROR: There has been an error while trying to extract the source. Halting the installation. ERROR: There has been an error fetching the ruby interpreter. Halting the installation. 

I tried the chmod directories where I got access, but this does not fix the problem. Any suggestions?

+7
source share
1 answer

Please use this answer: Installed Ruby 1.9.3 with RVM, but ruby โ€‹โ€‹-v is not displayed on the command line

Your question is not duplicated, but the answer is the same.

+4
source

All Articles