Skip to content

Instantly share code, notes, and snippets.

@boydm
Forked from ngauthier/README.md
Last active December 20, 2015 22:09
Show Gist options
  • Save boydm/6202701 to your computer and use it in GitHub Desktop.
Save boydm/6202701 to your computer and use it in GitHub Desktop.

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

Quick install:

curl -L https://gist.github.com/boydm/6202701/raw/940002a24c48955e1b011e2600f00a8570afe219/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-p247.tar.gz
tar xzf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247
./configure
make
sudo checkinstall -y \
--pkgversion 2.0.0-p247 \
--provides "ruby-interpreter"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment