Notes on Life, ‘Puters and Hawaii

Compiling Rubinius Ruby Trunk from Source on Mac OS X

Update 09/15/07: You now must use git to install Rubinius.

I installed Rubinius trunk from source last week for fun on the Mac. Having MRI Ruby 1.8.6, Rubinius trunk and JRuby trunk all on my system at once helps in my efforts to contribute to the JRuby project. You can compare output from multiple Ruby implementations to expose bugs, sometimes even finding bugs in other implementations.

I had to install some dependencies at first so I thought I’d lay it out for y’all. Keep in mind that I am compiling to /usr/local on my mac and I already had the necessary dependencies installed to support MRI Ruby 1.8.6 from scratch (explained in an earlier article).

curl -O ftp://mirrors.kernel.org/gnu/gettext/gettext-0.16.1.tar.gz
tar xzf gettext-0.16.1.tar.gz
cd gettext-0.16.1
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://ftp.gnome.org/pub/GNOME/sources/glib/2.13/glib-2.13.0.tar.bz2
tar xjf glib-2.13.0.tar.bz2
cd glib-2.13.0
./configure --prefix=/usr/local
make
sudo make install
cd ..

git clone git://git.rubini.us/code rubinius
cd rubinius
rake build
sudo rake install
cd ..

Comments are closed.