Skip to content

Instantly share code, notes, and snippets.

@werm
Forked from ngauthier/README.md
Last active December 15, 2015 22:00
Show Gist options
  • Save werm/5330232 to your computer and use it in GitHub Desktop.
Save werm/5330232 to your computer and use it in GitHub Desktop.

Installs ruby-2.0.0-p0 on ubuntu via checkinstall so it's in your package manager and you can remove it.

Quick install:

curl -L https://gist.github.com/werm/5330232/raw/02da122ae042af2b814f39d27db335639e403237/ruby-2-install-ubuntu.sh | bash -s
#!/usr/bin/env bash
set -e
sudo apt-get build-dep ruby1.9.3
wget -c http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
tar xzf ruby-2.0.0-p0.tar.gz
cd ruby-2.0.0-p0
./configure
make
sudo checkinstall -y \
--pkgversion 2.0.0-p0 \
--provides "ruby-interpreter"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment