25 July 2012

Compile mono from source on OSX

The following is how I compiled mono latest from source:

  1. Install MacPorts from http://macports.org
  2. Install gettext
    sudo port install gettext
  3. Locate your current mono environment. It is usually at:
  4. Download the mono source from GitHub master branch
    git clone https://github.com/mono/mono.git
  5. Run autogen with your OSX version prefix
    ./autogen.sh --prefix=/Library/Framework/Mono.framework/Versions/Current
  6. Run make
    sudo make
  7. Optionally, you can run the tests
    sudo make check
  8. Run make install
    sudo make install

← Back