Ming will install reasonably easily under Mac OS X. The main difficulty is getting all the supporting graphics libraries installed.
Here's how I managed it. These instructions should apply to OS X 10.3 and 10.4, and Ming version 0.3. (At present, 0.4.0beta2 does not appear to build on Intel Macs.)
Installing graphics libraries
First of all, you need to install a few graphics libraries for use in Ming.
For zlib, libpng and libjpeg, follow the instructions on
this page. (You can continue to install GD if you like, but Ming doesn't need it.) You will need to download the source for each library in turn.
Note that the latest libpng will not install on an Intel Mac. You will need to download and install the earlier version 1.2.8 instead.
For libgif, follow the instructions on
this page.
Because some parts of Ming look for 'libungif', but we've just installed 'libgif', we need to provide symbolic links (or "aliases" in Macspeak
). So (in the Terminal) do this:
cd /usr/local/lib
ln -s libgif.4.1.4.dylib libungif.4.1.4.dylib
ln -s libgif.4.dylib libungif.4.dylib
ln -s libgif.a libungif.a
ln -s libgif.dylib libungif.dylib
ln -s libgif.la libungif.la
(I'm not sure if all of these are necessary, but it's better to be safe...)
Installing Ming itself
Download ming-0.3.0, ungzip it, and cd into the directory. Now simply:
./configure
make
sudo make install
(Tested by Richard Fairhurst, May 2006.)
solving library problems when compiling
If you installed libpng with darwinports, you'll have to add the include-dirs to the configure-command :
./configure "LDFLAGS=-L/opt/local/include -L/opt/local/lib" "CPPFLAGS=-I/opt/local/include -I/opt/local/lib" "CFLAGS=-I/opt/local/include -I/opt/local/lib"
and installing the perl extension
in your ming source directory after downloading the specific tar.gz file from ming.sourceforge.net (the perl_ext is NOT included in the tar.gz of ming itself !)
cd perl_ext perl Makefile.PL
then the usual make, make test, make install ....
Installing language bindings
See the instructions elsewhere on this wiki.