note 35081 deleted from ref.image by betz

From: Date: Sat, 04 Jun 2005 11:18:51 +0000
Subject: note 35081 deleted from ref.image by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89904@lists.php.net to get a copy of this message
Note Submitter: sameerni at netscape dot net ---- i tried to install gd on linux (RedHat 8.0) with apache 1.3.27 and php 4.3.2 i had libjpeg, libz, libgif, libpng, libgd installed in /usr/lib. i compiled php using following ./configure command: ./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-gd-dir=/usr/lib --with-freetype --with-freetype-dir=/usr/lib --enable-ftp --with-jpeg --with-jpeg-dir=/usr/lib --with-png --with-png-dir=/usr/lib --with-gif --with-gif-dir=/usr/lib --with-xml --with-xslt --with-zlib --with-zlib-dir=/usr/lib it compiled without any problem. but phpinfo() did not show jpeg support. and it did not find imagecreatefromjpeg() so i installed libjpeg-6b in different directory (in /usr/lib/jpeg6b) and recompiled php with following command. ./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-gd-dir=/usr/lib --with-freetype --with-freetype-dir=/usr/lib --enable-ftp --with-jpeg --with-jpeg-dir=/usr/lib/jpeg6b --with-png --with-png-dir=/usr/lib --with-gif --with-gif-dir=/usr/lib --with-xml --with-xslt --with-zlib --with-zlib-dir=/usr/lib and imagecreatefromjpeg() started working. also phpinfo() shows jpg support enabled. ----------output of phpinfo()------------- [snip] gd GD Support enabled GD Version bundled (2.0.12 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled [snip] ----------output of phpinfo()------------- hope you will find this useful.

« previous php.notes (#89904) next »