note 11245 added to Image functions
| From: | clay at incogen dot com | Date: | Mon, 12 Feb 2001 23:59:40 +0000 |
| Subject: | note 11245 added to Image functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10951@lists.php.net to get a copy of this message | ||
Things needed for gd integration into php / apache running Solaris 7:
before starting check your env variables
comment out LD_LIBRARY_PATH
and make sure that /usr/ccs/bin is before /usr/ucb in your PATH ( this is for Libpng )
Download packages from http://www.sunfreeware.com:
jpeg-6b-sol7-sparc-local.gz
libpng-1.0.2-sol7-sparc-local.gz
zlib-1.1.3-sol7-sparc-local.gz zlib
use pkgadd -d to install each of these packages into /usr/local
and gd-1.8.3.tar.gz from
ftp://ftp.boutell.com/pub/boutell/gd/gd-1.8.1.tar.gz
unpack zlib then libpng then jpeg... just make sure to do zlib before libpng
( not sure if it matters with the packages ? )
unpack gd
modify the Makefile, to use JPEG like this:
CFLAGS= -O -DHAVE_JPEG and
LIBS= -lm -lgd -lpng -lz -ljpeg
now configure php
./configure --with-apache=../apache_1.3.14/ --with-oci8 --enable-track-vars --with-gd=/usr/local
with-jpeg-dir=/usr/local
make
make install
now configure apache
./configure activate-module=src/modules/php4/libphp4.a
make
http://www.php.net/manual/en/ref.image.php