Skip to content

Instantly share code, notes, and snippets.

@mortik
Forked from denji/README.md
Last active August 29, 2015 14:04
Show Gist options
  • Save mortik/4ea0208b1688097c9549 to your computer and use it in GitHub Desktop.
Save mortik/4ea0208b1688097c9549 to your computer and use it in GitHub Desktop.

Installs 2.1.2 on debian/ubuntu via checkinstall so it's in your package manager and you can remove it.

Quick install:

curl -L https://gist.github.com/mortik/4ea0208b1688097c9549/raw/855840025891f3b7e764bf720026072104c5c3bd/ruby-2-install-debian.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.1/ruby-2.1.2.tar.gz
tar xzf ruby-2.1.2.tar.gz
cd ruby-2.1.2
./configure
make
sudo checkinstall -y \
--fstrans no \
--type debian \
--install yes \
--pkgversion 2.1.2 \
--provides "ruby-interpreter"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment