Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install Ruby on Rails with RVM on Ubuntu 13.04

I am trying to install RVM on my Ubuntu machine.

I have used curl to get RVM, but some RVM commands (install, requirements) throw this apt-get error:

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

type rvm | head -1 returns

rvm is a function
-bash: type: write error: Broken pipe

which gem

/usr/bin/gem

I have checked the "Run command as a login shell" option

Steps followed from this tutorial:

sudo apt-get install curl
curl -L get.rvm.io | bash -s stable --auto
. ~/.bash_profile
rvm requirements - doesn't work properly

I have also looked at the official RVM documentation, but it seems to be very similar.

Any ideas?

UPDATE: I managed to do it. I disabled all the third party ppa URLs and it installed smoothly.

like image 381
Sebastian Avatar asked May 18 '13 16:05

Sebastian


People also ask

How do I download RVM on Ubuntu?

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.


2 Answers

There are some important packages your system needs before install rvm. Run at the terminal:

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 nodejs

Then install rvm with:

curl -L https://get.rvm.io | bash -s stable --ruby

Now you need to put a setting in your .bashrc to add rvm to PATH for scripting. Run:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

Open a new terminal and test rvm.

like image 168
Juliano Alves Avatar answered Oct 27 '22 04:10

Juliano Alves


run

sudo apt-get update

sudo apt-get install build-essential

and then try again.

like image 21
Sachin Singh Avatar answered Oct 27 '22 05:10

Sachin Singh