Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing ruby using rvm

Tags:

ruby

ubuntu

rvm

Am getting the below error while trying to install ruby using rvm:

$rvm install 1.9.3
Searching for binary rubies, this might take some time.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..................................................................................................
Error running 'requirements_debian_update_system ruby-1.9.3-p448',
please read /home/troy/.rvm/log/1379872584_ruby-1.9.3-p448/update_system.log
Requirements installation failed with status: 100.

Can you help me on this!

like image 793
user1482084 Avatar asked Sep 22 '13 18:09

user1482084


People also ask

Can we install RVM in Windows?

RVM supports most UNIX like systems and Windows (with Cygwin or Bash on Ubuntu on Windows). The basic requirements are bash , curl , gpg2 and overall GNU version of tools - but RVM tries to autodetect it and install anything that is needed.

What does RVM stand for Ruby?

RVM stands for Ruby Version Manager. It is a command line tool which allows you to easily install, manage and work with different Ruby environments. With RVM, you can easily install different versions of Ruby and easily switch between them.


4 Answers

Remove broken or 404 repos from your /etc/apt/sources.list.

rvm will fail if you don't remove or comment them out.

To work out which aren't working, run apt-get update and see which ones are marked as failing.

Once you are using rvm, installing Ruby is easy.

rvm install ruby

rvm use ruby --default

I had the same problem.

like image 170
TheBetterJORT Avatar answered Oct 07 '22 09:10

TheBetterJORT


It isn't unusual to not have a binary package for you distribution, and rvm should try to install from source.

First, check that it didn't actually install it:

rvm list

Otherwise, I suspect you may be missing some depedencies, which you can find with:

rvm requirements

You'll need to install those and the run the install again.

like image 35
kwarrick Avatar answered Oct 07 '22 08:10

kwarrick


make sure you can update your system:

sudo apt-get update

and then start rvm installation again.

Update 1:

also it looks like you are using old version of rvm, make sure to update rvm before continuing:

rvm get stable
like image 4
mpapis Avatar answered Oct 07 '22 08:10

mpapis


been having a similar problem and discovered a typo in grizzly.list file

http://ubuntu-cloud.archive.cononical.com precise-updates/grizzly

should have been

http://ubuntu-cloud.archive.canonical.com precise-updates/grizzly

i.e. first a in canonical

is this mistake part of the ubuntu 12.04 distribution?

like image 2
freemoth Avatar answered Oct 07 '22 09:10

freemoth