Skip to content

Instantly share code, notes, and snippets.

@manat
Forked from ngauthier/README.md
Last active December 20, 2015 23:29
Show Gist options
  • Save manat/6213000 to your computer and use it in GitHub Desktop.
Save manat/6213000 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# 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/manat/6213000/raw/1c875e87dbddb57cba3c0a1865446ca7e8f5baa5/ruby-2-install-ubuntu.sh | bash -s
set -e
sudo apt-get build-dep ruby1.9.1
wget -c ftp://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