Subject: Building libgd and GD.pm on Mac OS X.3
Prerequisites: Apple X11 installed
Look, about a billion people have asked me how to build gd and libgd and Mac OS X. It really isn’t that difficult\. Here is how to do it. Please note that there may be a newer version of libgd by this point.
# fetch and build libgd (current for 2.0.15)
% curl -O http://www.boutell.com/gd/http/gd-2.0.15.tar.gz
% gnutar -zxf gd-2.0.15.tar.gz
% cd gd-2.0.15/% ./configure CPPFLAGS=-I/usr/X11R6/include/freetype2 \
--with-freetype=/usr/X11R6/lib
% make
% sudo make install# Fetch and build GD.pm
% curl -O http://stein.cshl.org/WWW/software/GD/GD.pm.tar.gz
% gnutar xzf GD.pm.tar.gz
% cd GD-*/
% perl Makefile.PL
% make
% make test
% sudo make install