<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000099">
Hello all,<br>
<br>
# I am quite new to 64 bit Linux<br>
<br>
I am trying to build php-5.3.6 on CentOS 5.6, 64 bit.<br>
<br>
When I run ./configure under php-5.3.6, I get the following error:<br>
<br>
----- Error -----<br>
If configure fails try --with-jpeg-dir=<DIR><br>
configure: error: libpng.(a|so) not found.<br>
----- Error -----<br>
<br>
Though libpng-devel and libjpeg-devel (both i386 and x64 rpms) are
installed, <br>
it seems that configure could not find them.<br>
<br>
(I guess) I've fixed the errors by:<br>
<br>
1. Adding /usr/lib64 to /etc/so.ld.conf, and<br>
2. Specify jpeg lib dir that configure has to look: <br>
./configure --with-jpeg-dir=/usr<br>
<br>
So, php 5.3.6 did compile fine but, curiously, I want to ask:<br>
<br>
3. Why /usr/lib64 is not in ldconfig by default?<br>
4. Why it is "--with-jpeg-dir=/usr" but not
"--with-jpeg-dir=/usr/lib64"?<br>
<br>
BR,<br>
<br>
Nguyễn Vũ Hưng <br>
<br>
<br>
<br>
</body>
</html>