a life of coding

Thursday, March 10, 2005

Mono SVN - building on the Mac

Building Mono from SVN on the Mac can be pretty aggrevating. There aren't a lot of people doing it, and I suspect that when it finally does work, most people don't know what they did differently. To further complicate things, there is a "Framework" .pkg of Mono that most people have installed. It doesn't seem like a good idea to have a SVN build in /usr/local and a package build in /Library/Frameworks. Here are some commands that should build Mono from SVN properly (or close to it):

fink scanpackages; fink index; fink selfupdate; fink update-all
cd mono-checkout-directory
ACLOCAL_FLAGS="-I /sw/share/aclocal" ./autogen.sh --prefix=/Library/Frameworks/Mono.framework --with-preview=yes
sudo make install

This assumes that you have mono checked out from SVN. If not, you should check out http://www.mono-project.com/Mono:OSX. There is a script (which will need editing) available via:

svn co svn://svn.myrealbox.com/source/trunk/mono/web

I have updated mono-build-mac-fw-release.sh - the patch can be applied with the following command:

cd mono-svn/mono/web
patch -p0 < mono-build-mac-fw-release_sh.patch


Post a Comment


Create a Link

<< Home