Over a million developers have joined DZone.

Building IronRuby with Mono on OSX

DZone 's Guide to

Building IronRuby with Mono on OSX

· ·
Free Resource

IronRuby comes in 2 flavours of SCM and apparently also with 2 flavours of project layout.

I spend most of my time on the mac and I wanted to be able to test ironruby stuff on it too. I tried to build IronRuby on my mac which doesn’t work straight away you have to patch it a little to make it work.

If you’re using the svn version then you can use the patch created by Seo Sanghyeon.

Michael Letterle has forked the ironruby git repository and created a branch called linux. You can find it on github.

For me the linux branch didn’t want to work and so I forked the ironruby repository too, created a branch called mono. My version is also up on github.

If you’re going to use the git layout of IronRuby, which is practically the same as what the IronRuby team uses at Microsoft. You’ll have to set an environment variable MERLIN_ROOT . I use a .bashrc file and added the following line to it:

export MERLIN_ROOT=’/Users/ivan/src/ironruby/merlin/main’

Now how do you get to those git branches?

Start a terminal session.

I have a directory src in which i download and compile sources. So I navigated into that directory src.

cd src

git clone git://github.com/casualjim/ironruby.git

cd ironruby

git checkout -b mono

git pull origin mono

Compiling IronRuby

cd merlin/main/Languages/Ruby

rake compile mono=1


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}