note 35081 added to ref.image

From: Date: Tue, 19 Aug 2003 05:30:36 +0000
Subject: note 35081 added to ref.image
Groups: php.notes 
Request: Send a blank email to php-notes+get-54637@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/ref.image.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35081 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35081&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35081&report=yes

« previous php.notes (#54637) next »