Skip to content

Instantly share code, notes, and snippets.

@denji
Forked from ngauthier/README.md
Last active December 18, 2015 09:19
Show Gist options
  • Save denji/5760269 to your computer and use it in GitHub Desktop.
Save denji/5760269 to your computer and use it in GitHub Desktop.
Ruby deploy package Debian (*.deb) ruby-2.1.1 https://www.ruby-lang.org/en/news/2014/02/24/ruby-2-1-1-is-released/

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

Quick install:

curl -L https://gist.github.com/denji/5760269/raw/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.1/ruby-2.1.1.tar.gz
tar xzf ruby-2.1.1.tar.gz
cd ruby-2.1.1
./configure
make
sudo checkinstall -y \
--pkgversion 2.1.1 \
--provides "ruby-interpreter"
@Keeo
Copy link

Keeo commented Mar 16, 2014

cd 2.1.0

Wont work since the folder will be ruby-2.1.0

@denji
Copy link
Author

denji commented Mar 23, 2014

@Keeo, fixed thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment