Skip to content

Instantly share code, notes, and snippets.

@hoanga
Created September 4, 2009 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoanga/180805 to your computer and use it in GitHub Desktop.
Save hoanga/180805 to your computer and use it in GitHub Desktop.
#!/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