Skip to content

Instantly share code, notes, and snippets.

@threedaymonk
Forked from postmodern/build_ruby19.sh
Created August 13, 2009 22:30
Show Gist options
  • Save threedaymonk/167495 to your computer and use it in GitHub Desktop.
Save threedaymonk/167495 to your computer and use it in GitHub Desktop.
Script to install Ruby 1.9.1 on Ubuntu (and make a proper package)
#!/bin/sh
TINY="1"
PATCH="378"
mkdir -p ~/src && cd ~/src
curl ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.${TINY}-p${PATCH}.tar.bz2 | tar jxv
cd ruby-1.9.${TINY}-p${PATCH}
./configure \
--prefix=/usr \
--program-suffix=1.9 \
--enable-shared && \
make && \
sudo checkinstall \
--pkgname ruby1.9 \
--pkgversion 1.9.${TINY}-p${PATCH} \
--provides ruby1.9 \
--default \
--fstrans=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment