Last Updated: December 01, 2021
· erol

Install Rubinius 2.0: Homebrew + rbenv + ruby-build

Rubinius 2.0 has been finally released! This is great news for people who are happily coding in Ruby and are trying to deliver highly concurrent applications.

Here's what we need:

Homebrew and ruby-build

We will be using the latest build definitions from ruby-build; if you have an existing installation, you will need to update them first:

brew update
brew upgrade ruby-build


Let's install a few dependencies:

brew install git openssl readline libyaml gdbm

Inception: Install Ruby to Install Ruby

Before we proceed, the build process requires an existing Ruby 2.0 installation and Bundler.

rbenv install 2.0.0-p247
rbenv shell 2.0.0-p247
gem install bundler

Now let's install Rubinius 2.0.0. Since we are using Homebrew, we need to specify the location of our libraries:

RUBY_CONFIGURE_OPTS=--with-opt-dir="`brew --prefix openssl`:`brew --prefix readline`:`brew --prefix libyaml`:`brew --prefix gdbm`:`brew --prefix libffi`" rbenv install rbx-2.0.0

Wait for the build process to finish. Mine took quite a while on a 2012 MBP.

Once it's done, fire up a new rbenv shell.

rbenv shell rbx-2.0.0

Happy coding!

1 Response
Add your response

does this work with Ruby version 2.1.1?

over 1 year ago ·