Building IronRuby with Mono on OSX
Join the DZone community and get the full member experience.Join For Free
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.
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:
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.
git clone git://github.com/casualjim/ironruby.git
git checkout -b mono
git pull origin mono
rake compile mono=1
Opinions expressed by DZone contributors are their own.