[CentOS] php-5.3.6 fails on CentOS 5.6 64 bit

Nguyen Vu Hung (VNC) vuhung at vinicorp.com.vn
Thu Jul 14 06:18:06 UTC 2011

Hello all,

# I am quite new to 64 bit Linux

I am trying to build  php-5.3.6 on CentOS 5.6, 64 bit.

When I run ./configure under php-5.3.6, I get the following error:

----- Error -----
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
----- Error -----

Though libpng-devel and libjpeg-devel (both i386 and x64 rpms) are 
it seems that configure could not find them.

(I guess) I've fixed the errors by:

1. Adding /usr/lib64 to /etc/so.ld.conf, and
2. Specify jpeg lib dir that configure has to look:
    ./configure --with-jpeg-dir=/usr

So, php 5.3.6 did compile fine but, curiously, I want to ask:

3. Why /usr/lib64 is not in ldconfig by default?
4. Why it is "--with-jpeg-dir=/usr" but not "--with-jpeg-dir=/usr/lib64"?


Nguyễn Vũ  Hưng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110714/1a481b7f/attachment.html>

More information about the CentOS mailing list