GD u/ PHP

| Tuesday, February 20, 2007

Overview:
Step #1 - Download, Unzip, Untar, Configure, Compile and Install zlib
Step #2 - Download, Unzip, Untar, Configure, Compile and Install libpng
Step #3 - Using the built-in to FreeBSD "Ports" System: Download and Install libjpeg
Step #4 - Download, Unzip, Untar, Configure, Compile and Install GD

zlib – Free open source compression library
fetch http://www.zlib.net/zlib-1.2.3.tar.gz
# Unzip and Untar
tar xvf zlib-1.2.3.tar.gz
# Configure
cd zlib-1.2.3
./configure
# Compile
make
# Install
make install

libpng – PNG reference library for creating graphics / images
cd /usr/src
fetch http://easynews.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.10.tar.gz
tar xvf libpng-1.2.10.tar.gz
cd libpng-1.2.10
./configure
make
make install

libjpeg – JPG reference library for creating graphics / images
# WARNING: Could not get jpeg library to install correctly via:
# cd /usr/src
# fetch http://www.ijg.org/files/jpegsrc.v6b.tar.gz
# tar xvf jpegsrc.v6b.tar.gz
# cd jpeg-6b/
# ./configure
# make
# make install
# ** GD could not correctly locate it during compile!

# Currently must use fall back method via FreeBSD Ports:
cd /usr/ports/graphics/jpeg
make install

cd /usr/src
fetch http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
tar xvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure --disable-shared
make
make install

# Note: Installing software the looks for GD may require adding configure options when you install that software:
# --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include/

Atau langsung saja install via port, hasilnya sbb :
freetype2-2.1.10_3 A free and portable TrueType font rendering engine
gd-2.0.33_4,1 A graphics library for fast creation of images
gettext-0.14.5_2 GNU gettext package
gmake-3.80_2 GNU version of 'make' utility
jpeg-6b_4 IJG's jpeg compression utilities
libiconv-1.9.2_2 A character set conversion library
libtool-1.5.22_2 Generic shared library support script
pkgconfig-0.20 A utility to retrieve information about installed libraries
png-1.2.8_3 Library for manipulating PNG images

0 komentar: