trust your technolust

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
./mono-build-mac-fw-release.sh


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

2 Comments:

Blogger peterp said...

Cool. I keep meaning to get mono set up on a linux box, but i cant seem to work up the interest to do it.

2:27 PM

 
Blogger ynniv said...

I don't think that my Mac OS X instructions work well under Linux.

2:46 PM

 

Post a Comment

<< Home