RH7, gd and php4.0.4pl1

From: Date: Mon, 21 May 2001 17:08:19 +0000
Subject: RH7, gd and php4.0.4pl1
Groups: php.install 
Request: Send a blank email to php-install+get-3223@lists.php.net to get a copy of this message
Hi I need some help installing gd-support with jpeg and png support on my Red Hat 7. I have compiled a version of php4.0.4 witch have support for gd, but when i run this script: <? // create the image $gif = imagecreate(200,200); $bg = ImageColorAllocate($gif,0,0,0); $tx = ImageColorAllocate($gif,255,128,128); ImageFilledRectangle($gif,0,0,200,200,$bg); ImageString($gif,3,70,90,"it works !",$tx); // send the image //header("content-type: image/jpg"); Imagejpeg($gif, 'test.jpg', 100); ?> i get this result: Warning: ImageJpeg: No JPG support in this PHP build in /var/www/html/test.grafik.php on line 11 I have compiled php4.0.4 with this config: --with-mysql --with-apxs --with-gd and i get two warnings telling my to use --with-xpm-dir and/or --with-jpeg-dir i configure fails, but i don't get any errors, just the two warnings i have installed jpeg from jpegsrc.v6b.tar.gz, and libpng from libpng-2.1.0.3-1.i386.rpm, and i assumed that gd is installed by the Red Hat installer. Best regards Thomas D. Kryger www.akvariet.dk www.akvariemarked.dk

« previous php.install (#3223) next »