Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM Ruby on Rails installation

I'm having a trouble installing rvm ROR on my machine using ubuntu 12.04

here are the outputs I'm getting:

Output #1:

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/i386/ruby-1.8.7-p371.Continuing with compilation. 
Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for ubuntu, might require sudo password.

and at the end of the line of update I get this:

Output #2:

There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
like image 477
fujisan Avatar asked May 26 '13 10:05

fujisan


People also ask

How do I install Ruby version on RVM?

You'll use the curl command to download the RVM installation script from the project's website: \curl -sSL https://get.rvm.io -o rvm.sh. The backslash that leads the command ensures that we are using the regular curl command and not any altered, aliased version.

What is RVM install?

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

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.


1 Answers

Try running sudo apt-get update separately on a command line. Your Ubuntu might be old and its repositories could be out of date. So apt-get update itself is maybe not working in your machine.

To step over that issue, run the following commands:

# Disable RVM from trying to install necessary software via apt-get
rvm autolibs disable

# Then try installing Ruby:
rvm install 1.8.7

If you still face errors, see if you can directly do apt-get install without doing apt-get update (which fails):

# Try to see if you can manually install the necessary software
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

If that's also not working, then paste your apt-get update output.

like image 161
Subhas Avatar answered Nov 03 '22 08:11

Subhas