Re: installing with GD

From: Date: Thu, 08 Apr 2004 22:03:43 +0000
Subject: Re: installing with GD
References: 1 2 3  Groups: php.install 
Request: Send a blank email to php-install+get-13209@lists.php.net to get a copy of this message
"Mark Seger" <Mark.Seger@hp.com> Wrote: > ok, I confess, I must be stupid, but... > > ./configure --with-apxs2=/usr/local/bin/apxs --with-mysql --with-gd > > generates an error that it can't find libpng. adding > --with-png-dir=/usr/lib doesn't help. but if I now remove the --with-gd > switch it builds. so how to I get png AND gd support built together? > it seems that by adding the png option it prevents gd from building and > if I remove the png option it complains it's not there! > > can someone just show me a 'valid' configuration line and I'll try > that? All I'm looking for is something minimal that will use both png > and gd at the same time with apache and once I get that to work I can > try adding in other options > Okay, you need to make sure that you have all the *-devel packages installed. So you need: libjpeg-devel libpng-devel libtiff-devel (if you want tiff support) If I remember correctly, you also need zlib for png support, so: zlib zlib-devel Once all of those are installed, the following should work for you: ./configure --with-apxs2=/usr/local/bin/apxs --with-gd --with-zlib Good luck. -- Matt M.

« previous php.install (#13209) next »