Building and libgd

Subject: Building libgd and 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
% gnutar -zxf gd-2.0.15.tar.gz
% cd gd-2.0.15/% ./configure CPPFLAGS=-I/usr/X11R6/include/freetype2 \
% make
% sudo make install

# Fetch and build
% curl -O
% gnutar xzf
% cd GD-*/
% perl Makefile.PL
% make
% make test
% sudo make install

Leave a Reply