Skip to content

Instantly share code, notes, and snippets.

@sfate
Forked from ngauthier/README.md
Last active December 17, 2015 02:28
Show Gist options
  • Save sfate/5535586 to your computer and use it in GitHub Desktop.
Save sfate/5535586 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 -Lo- https://gist.github.com/Sfate/5535586/raw/install-ruby-2-ubuntu.sh | bash
#!/usr/bin/env bash
set -e
RUBY_V='ruby-2.0.0-p0'
sudo apt-get install checkinstall
sudo apt-get build-dep ruby1.9.1
wget -c http://ftp.ruby-lang.org/pub/ruby/2.0/$RUBY_V.tar.gz
tar xzf $RUBY_V.tar.gz
cd $RUBY_V
./configure
make
sudo checkinstall -y \
--pkgversion 2.0.0-p0 \
--provides "ruby-interpreter"
cd .. && rm -rf $RUBY_V.tar.gz $RUBY_V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment