Compile and install Mono
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


mono-build provides a simple way to compile and install different versions of Mono on UNIX-like systems.

Installing mono-build

$ git clone git://
$ cd mono-build
$ ./

This will install mono-build into /usr/local. If you do not have write permission to /usr/local, you will need to run sudo ./ instead. You can install to a different prefix by setting the PREFIX environment variable.

Included is an uninstall script as well, just run it to remove mono-build.

$ ./

If you only intend to use mono-build via mope, then you can install it locally as a plugin:

$ mkdir -p ~/.mope/plugins
$ cd ~/.mope/plugins
$ git clone git://

Installing Mono

To install a Mono version, run the mono-build command with the path to a definition file (A number of built-in definitions may be specified instead.) and the path where you want to install it.

$ mono-build 2.10.9 /Users/dragan/local/mono-2.10.9
$ /Users/dragan/local/mono-2.10.9/bin/mono --version
Mono JIT compiler version 2.10.9 (tarball Wed Apr 11 15:56:53 EDT 2012)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.

To install a Mono version with mope:

mono-build provides a mope-install command that shortens

$ mono-build 2.10.9 /Users/dragan/local/mono-2.10.9


$ mope install 2.10.9


This project was heavily inspired by the ruby-build project by Sam Stephenson.


mono-build is released under the MIT License. See LICENSE for more information.