Skip to content

Instantly share code, notes, and snippets.

@taiki45
Last active December 24, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taiki45/6820197 to your computer and use it in GitHub Desktop.
Save taiki45/6820197 to your computer and use it in GitHub Desktop.
Install Rubinius 2.0.0-dev with rbenv

Install Rubinius 2.0.0-dev with rbenv

Install rubinius

  • 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 for RUBYLIB environment variable, fix Rakefile 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!

Enable Rubinius

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment