Installation of GD on a Macintosh server under MacOS 10.4.8This procedure worked on a Xserve G5 MacOS 10.4.8 in autumn 2006, actual version numbers of libraries might differ, check for latest version. (%sudo ranlib... is optional)X11:Download from Apple or use Install DVD/CD: install X11 from X11User.dmg (this is necessary for libgd to compile correctly) Xcode:Download from Apple or use Install DVD/CD: install Xcode (this is for the C compiler) zlib:%curl -O http://www.gzip.org/zlib/zlib-1.2.3.tar.gz %gnutar xzf zlib-1.2.3.tar.gz %cd zlib-1.2.3 %./configure %make %sudo make install %sudo ranlib /usr/local/lib/libz.a libjpeg:%curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz %gnutar -xzf jpegsrc.v6b.tar.gz %cd jpeg-6b/ %./configure %sudo make install-lib %sudo ranlib /usr/local/lib/libjpeg.a (on iBook G4 10.4.8 the procedure didn't work for some reason, installed libjpeg via darwinport and moved from opt/ to standard locations) libpng:%curl -O http://belnet.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.12-no-config.tar.gz %gnutar -xzf libpng-1.2.12.tar.gz %cd libpng-1.2.12/ %cp scripts/makefile.darwin ./Makefile %make ZLIBINC="/usr/lib" ZLIBLIB="/usr/lib" %sudo make install %sudo ranlib /usr/local/lib/libpng.a freetype:%curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10.tar.gz %gnutar xzf freetype-2.1.10.tar.gz %cd freetype-2.1.10 Edit include/freetype/config/ftoption.h. to (uncomment if necessary): #define FT_CONFIG_OPTION_SYSTEM_ZLIB #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER #define TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED Note: In some countries there might be patent issues. Check before! %./configure && make && sudo make install libgd:Important - if old version of GD was installed, move the old version into an archive: %cd /usr/local/lib %sudo mv libgd.* /Users/userX/libgd_archiv/ %sudo ln -s /usr/X11R6/include/fontconfig /usr/local/include %curl -O http://www.boutell.com/gd/http/gd-2.0.33.tar.gz %gnutar -xzf %cd gd-2.0.33 %./configure if Support for Freetype 2.x library: no %ln -s `which glibtool` ./libtool %./configure --with-freetype=/usr/local %make %sudo make install %sudo ranlib /usr/local/lib/libgd.a GD:%sudo cpan %install GD
|