Created
September 4, 2009 08:58
-
-
Save hoanga/180805 to your computer and use it in GitHub Desktop.
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 | |
RUBY19_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.9" | |
RUBY19_VERS="ruby-1.9.1-p243" | |
echo "=============================" | |
echo "Downloading and extracting..." | |
echo "=============================" | |
cd ~/Downloads && wget -c "${RUBY19_URL}/${RUBY19_VERS}.tar.gz" | |
tar xvzf ~/Downloads/${RUBY19_VERS}.tar.gz -C ~/src/static | |
echo "=============================" | |
echo "Configuring and compiling..." | |
echo "=============================" | |
cd ~/src/static/${RUBY19_VERS} | |
# Don't trust MacPorts version of autoconf because it somehow nuked | |
# --with-readline-dir | |
/usr/bin/autoconf# Make sure to compile with GNU Readline support if you to be able | |
# to cut and paste Japanese into the irb console. | |
./configure --with-readline-dir=/opt/local --enable-shared --program-suffix=19 --enable-p | |
thread | |
make | |
echo "=============================" | |
echo "Installing by typing..." | |
echo "cd ~/src/static/${RUBY19_VERS}" | |
echo "sudo make install" | |
echo "=============================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment