[MonoDevelop] MonoDevelop on Mac OS X

Brian Jepson bjepson@oreilly.com
Thu, 20 May 2004 08:32:13 -0400 (EDT)


I've posted some crude instructions for getting MonoDevelop to run on Mac
OS X, in case this helps anyone.  They are up at:
 
  http://www.jepstone.net/index.cgi/Development/DotNet/MonoDevelopOnMacOSX.html

But here's a copy for the permanent record:

   * Install [1]Fink.

   * [2]Configure Fink to use the unstable repository.

   * Install mono, gtk-sharp, gecko-sharp, gtksourceview-sharp, and
     probably a bunch of other stuff (monodevelop will let you know
     what's needed when you run ./configure) using "fink install". When
     you come to gtk-sharp, you might have a problem with a gtk+2
     dependency, so if this happens, edit
     /sw/fink/10.3/unstable/main/finkinfo/graphics/gtk-sharp.info and
     change all occurrences of "gtk+2 (>= 2.2.4-3)" to "gtk+2 (>=
     2.2.4-2)"

   * Install mozilla with fink. This will take a veeeery long time if
     you do it from source, so if you don't mind mixing source/binary
     installations, just do "sudo apt-get install mozilla". If you
     don't have mozilla installed, the monodevelop script will appear
     to hang ("cat `which mozilla`" turns into "cat") when you launch
     it.

   * Download [3]MonoDevelop 0.3, extract it, set
     CPPFLAGS=-I/sw/include, CFLAGS=-I/sw/include, and
     LDFLAGS=-L/sw/lib, and then run ./configure in the top-level
     directory.

   * Edit Main/Base/Makefile and change CSC = mcs /debug to CSC = mcs.
     This prevented a NullReferenceException while compiling that part
     of the code.

   * make and then sudo make install

   * Mono seems to be a little confused about how to handle DllImport
     on Mac OS X, so we need to help it. You'll need to make the
     following symlinks:

      $ cd /sw/lib
      $ sudo ln -s libgtk-x11-2.0.dylib libgtk-x11-2.0.so.0
      $ sudo ln -s libgnomevfs-2.dylib libgnomevfs-2.so
      $ sudo ln -s libgtksourceview-1.0.dylib libgtksourceview-1.0.so
      $ sudo ln -s libglib-2.0.dylib libglib-2.0.so
      # Update 5/18/2004:
      $ sudo ln -s libglib-2.0.dylib libglib-2.0.so.0

      $ cd /usr/local/lib/monodevelop/bin/
      $ sudo ln -s libgdldock.dylib libgdldock.so
      $ sudo ln -s libmonodevelop.dylib libmonodevelop.so

   * Open up X11, start an xterm, and run /usr/local/bin/monodevelop.

References

   1. http://fink.sourceforge.net/
   2. http://fink.sourceforge.net/faq/usage-fink.php?phpLang=en#unstable
   3. http://www.monodevelop.com/

All advice, suggestions, criticisms are welcome!

Cheers,

Brian