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:
- Command Line Tools: https://github.com/kennethreitz/osx-gcc-installer#readme
- Homebrew: http://brew.sh/
- rbenv: https://github.com/sstephenson/rbenv
- ruby-build: https://github.com/sstephenson/ruby-build
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