If libpng was recently manually installed, chances are ldconfig needs to be run (even though that generally happens during boot-up.). ldconfig handles all the so-name linking, etc.
Steps: 1) Make sure /etc/ld.conf (or /etc/ld.so.conf) has a listing for /usr/lib 2) Run ldconfig If that doesn't work, you can always try munging it by manually linking libpng.so to one of those libraries (/usr/lib/libpng.so.3). There might be a configure option in the PHP build process to specify the library path as well. I use to build it manually, however I've been using ActiveState's build recently. Primarily because they have more time to test a build then I do, etc. Regards, D --- Ryan <[EMAIL PROTECTED]> wrote: > Hmmm running "locate libpng" returns this: > > /usr/lib/libpng.so.3.1.2.2 > /usr/lib/libpng.so.3 > /usr/lib/libpng12.so.0.1.2.2 > /usr/lib/libpng12.so.0 > /usr/lib/libpng.so.2 > /usr/lib/libpng.so.2.1.0.13 > > It doesn't look like it's looking for the libraries, > the error specifically > mentions .(a|so) > > How do I tell it that libpng is in /usr/lib? > Shouldn't it know this > already? It's not like I moved it. > > -Ryan > > > At 06:11 AM 7/29/04, you wrote: > >It looks like your missing the libpng library. > > > >Put that in and it should work. > > > >Dan J. > >On Wed, 28 Jul 2004 23:13:47 -0500, Ryan wrote > > > I get this error every time I try to compile > PHP: > > > > > > ...[snip]... > > > checking for floorf... yes > > > If configure fails try --with-jpeg-dir=<DIR> > > > configure: error: libpng.(a|so) not found. > > > > > > Here is my configure script: > > > > > > ./configure \ > > > --with-apxs2=/usr/local/apache/bin/apxs \ > > > --with-mysql \ > > > --with-gd \ > > > --with-curl=/usr/include/curl \ > > > --with-imap \ > > > --enable-wddx \ > > > > > > Maybe it's the GD line? I thought I read it > would use the internal > > > GD library. If I removed all the options from > ./configure it might > > > work. But then will I be able to read/modify > jpegs from within PHP? > > > > > > -Ryan > > > > > >----------------------------------------------------- > >Dan J Schlichting > >http://www.cpugeek.org > >[EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
