"Mark Seger" <[EMAIL PROTECTED]> 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.