Create a gist now

Instantly share code, notes, and snippets.

#!/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