Skip to content

Instantly share code, notes, and snippets.

@tuksik
Forked from ngauthier/README.md
Created April 21, 2013 07:47
Show Gist options
  • Save tuksik/5428809 to your computer and use it in GitHub Desktop.
Save tuksik/5428809 to your computer and use it in GitHub Desktop.
Installs ruby-2.0.0-p0 on ubuntu

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/ngauthier/5039249/raw/1868bf4714052b40e2bb7fdf3f40fbeb5d730bca/ruby-2-install-ubuntu.sh | bash -s
#!/usr/bin/env bash
set -e
sudo apt-get build-dep ruby1.9.1
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