IronRuby > Frequently Asked Questions > How do I compile the code under Mono?

How do I compile the code under Mono?

Getting Mono

Previously, you had to build Mono from SVN. Instruction is still provided below in case it is needed again. But you can use Mono 1.9 release just fine.

Reference: http://www.mono-project.com/AnonSVN

svn co svn://anonsvn.mono-project.com/source/trunk/mono 
svn co svn://anonsvn.mono-project.com/source/trunk/mcs 
cd mono
./configure
make
make install

If you built Mono from source, make sure pkg-config can find the built Mono. For example: export PKG_CONFIG_PATH="/opt/mono/lib/pkgconfig"

Build IronRuby from SVN

Tested version r112. You can use SVN's -r option to checkout or to update to the specified revision.

svn co -r 112 http://ironruby.rubyforge.org/svn/trunk ironruby 
cd ironruby 
patch -p0 < patch-mono-r112 
rake compile mono=1 
mono build/mono_debug/ir.cmd
Tag page
Viewing 1 of 1 comments: view all
In rev 121, after setting and exporting USERPROFILE=$HOME, I get the following error:

(in /home/ryan/dev/ironruby/)
rake aborted!
Found more than one version of ruby.exe on your path
/home/ryan/dev/ironruby/Rakefile:21
(See full trace by running task with --trace)

Any ideas as to what might be the problem? I'm running Ubuntu 8.04.
Posted 21:14, 8 Jul 2008
Viewing 1 of 1 comments: view all
You must login to post a comment.