-
Install rbenv with ruby-build.
-
Install Ruby 2.x and enable it by
rbenv global
. -
Install bundler gem then
rbenv-rehash
. -
Optional
brew install libyaml
-
Then do:
# Clone Rubinius
git clone https://github.com/rubinius/rubinius.git
cd rubinius
# Install gems
bundle install
./configure --prefix=$HOME/.rbenv/versions/rbx-2.0.0-dev
- Optional If you do
rake -T
and get the warning forRUBYLIB
environment variable, fixRakefile
as:
require 'redcard'
require './rakelib/configure'
+ENV["RUBYLIB"] = nil
+
include Rake::DSL if Rake.const_defined? :DSL
if ENV["RUBYLIB"]
- Then exec
rake
and you get all done!
Rubinius has different bin path from CRuby. So we have to patch rbenv. To patch rbenv, use this rbenv plugin.
https://github.com/taiki45/rbenv-rbx_2.0.0-dev_fix
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/taiki45/rbenv-rbx_2.0.0-dev_fix.git
Then do rbenv global rbx-2.0.0-dev
and rbenv rehash
.
Now you can use Rubinius!