-
-
Save joefiorini/138922 to your computer and use it in GitHub Desktop.
7/1/09 LATEST RUBY 1.9! Easy to change version number. More robust.
This file contains 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/bash | |
set -e | |
RUBY_BASE="ruby-1.9.1-p129" | |
RUBY_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.9/$RUBY_BASE.tar.bz2" | |
install_ruby19() { | |
create_src_directory | |
download_ruby19_source | |
extract_source | |
build_ruby19 | |
} | |
create_src_directory() { | |
mkdir -p /usr/local/src | |
} | |
download_ruby19_source() { | |
(cd /usr/local/src && sudo curl -O $RUBY_URL) | |
} | |
extract_source() { | |
(cd /usr/local/src && sudo tar -xjvf $RUBY_BASE.tar.bz2) | |
} | |
build_ruby19() { | |
(cd /usr/local/src/$RUBY_BASE && | |
sudo ./configure --prefix=/usr --program-suffix=19 --enable-shared && | |
sudo make && sudo make install) | |
} | |
install_ruby19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment