The ramblings of Eric Seijo - Software Developer / Life Hacker


Posted by Eric Seijo Wed, 26 Jun 2013 17:41:00 GMT

The lead dev for one of the high profile Rails sites I work on wanted to switch to running Rubinius. It took a bit of doing to get it set up locally for testing while keeping the main codebase untouched. Here are the steps I took to set up my dev machine (Mac OS X 10.8.4). I hope it saves someone time. (Thanks Gene for your help!)

Install Homebrew if you don't have it installed already

Then run the following:

brew install libyaml

git clone git://

cd into the rubinius directory

Once in the rubinius directory run the following to get Ruby 1.9 set as the default:

./configure --prefix= /opt/rubinius --enable-version=1.9 --default-version=1.9

sudo mkdir /opt/rubinius

sudo chown 'your account name' /opt/rubinius


rake install

export PATH=/opt/rubinius/bin:$PATH

rbx -S gem install bundler

Copy your project into another directory or create a new branch because the next steps will make changes to the project.

cd into your project directory and run:

rbx -S bundle install

rbx -S rails s

At this point your web server should be running.

Next add Puma to your Gemfile. Puma is a highspeed multithreaded server.

gem 'puma'

rbx -S bundle install

Start puma up:

rbx -S rails s puma

Have fun ;-)


Leave a comment