Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.87 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.87 KB

mono-build

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

Installing mono-build

$ git clone git://github.com/dragan/mono-build.git
$ cd mono-build
$ ./install.sh

This will install mono-build into /usr/local. If you do not have write permission to /usr/local, you will need to run sudo ./install.sh 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.

$ ./uninstall.sh

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://github.com/dragan/mono-build.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. www.mono-project.com
...

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

to

$ mope install 2.10.9

Thanks

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

License

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