May 19, 2012, 1:35 am
This is the unoffical php FAQ. The official php FAQ can be found at
http://www.php.net/faq
faq
Books
McCormick Spices
Links
Suggest
About
Old Bay Seasoning
Privacy
Terms
Configuring a Unix Apache 1.3.x DSO php install for use with jpgraph (with gd, libpng, t1lib, freetype, and jpeg support in php)
Gather all of the needed resources:
zlib from
http://www.gzip.org/zlib/
jpeg6b from
ftp://ftp.uu.net/graphics/jpeg/
libpng from
http://www.libpng.org/pub/png/
t1lib from
ftp://sunsite.unc.edu/pub/Linux/libs/graphics/
freetype2 from
http://freetype.sourceforge.net/index2.html
GD from
http://www.boutell.com/gd/
Install zlib:
tar xzf zlib-1.1.4.tar.gz -C /usr/local
cd /usr/local
mv zlib-1.1.4 zlib
cd zlib
./configure --shared
make
make install
install jpeg6b:
tar xzf jpegsrc.v6b.tar.gz -C /usr/local
cd /usr/local/jpeg-6b
./configure --enable-shared
make
make install
install libpng:
tar xzf libpng-1.2.3.tar.gz -C /usr/local
cd /usr/local
mv libpng-1.2.3 libpng
cd libpng
cp scripts/makefile.linux makefile
make
make install
install t1lib:
tar xzf t1lib-1.3.1.tar.gz
cd /usr/local
mv t1lib-1.3.1 t1lib
cd t1lib
# shared object is default build
./configure
make
make install
install freetype:
tar xzf freetype-2.0.8.tar.gz -C /usr/local
cd /usr/local
mv freetype-2.0.8 freetype2
#requires GNU make
gmake setup
gmake
gmake install
install gd:
tar xzf gd-2.0.1.tar.gz -C /usr/local
cd /usr/local
mv gd-2.0.1 gd
cd gd
vi makefile
#change location of freetype2 lheaders to /usr/local/include/freetype2
#change install libs to /usr/local/lib
#save
#------------------------------------------------------------------------
#download and install the Trueimage/freetype patch to gd-2.0.1 from:
#
http://www.coupin.net/gd-freetype/
make install
Finally, configure and build php:
rm config.cache
make clean
./configure \
--with-apxs=/path/to/apache/bin/apxs \
--with-mysql=/usr/local \
--with-jpeg-dir=/usr/local/jpeg-6b \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-ttf \
--with-t1lib \
--with-pdflib=/usr/local \
--with-tiff-dir=/usr/local \
--with-gd=/usr/local \
--enable-gd-native-ttf \
--enable-sockets \
--with-zlib \
--with-exif \
make
apachectl stop
make install
apachectl start
Online Advertising
|
Online Advertising
|
Web Advertising
|
Internet Advertising
|
Advertising