-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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