Hi,<br><br>Any reason why you want to compile it and not use the packages from IUS <a href="http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/repoview/php53u.html">http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/repoview/php53u.html</a><br>
<br><div class="gmail_quote">On Thu, Jul 14, 2011 at 10:08 AM, Edo <span dir="ltr"><<a href="mailto:ml2edwin@gmail.com">ml2edwin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
<br>
On Thursday, July 14, 2011 at 3:18 PM, Nguyen Vu Hung (VNC) wrote:<br>
<br>
<br>
[ ... ]<br>
<div class="im"><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>
<br>
</div>I think you meant, /etc/ld.so.conf? Anyway, there’s no need to add. But if you’re going to add something, it’s a better practice to add a file in /etc/ld.so.conf.d instead.<br>
<div class="im"><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>
<br>
</div>It is. Did you check with “ldconfig -v”?<br>
<div class="im"><br>
>  4. Why it is "--with-jpeg-dir=/usr" but not "--with-jpeg-dir=/usr/lib64"?<br>
<br>
</div>That worked because you have both i386 and x64 RPMs installed.<br>
<br>
As already pointed out, you could have fixed that by using “--with-libdir=lib64”.<br>
<br>
So, if you want to use /usr/lib64, try the following instead:<br>
<br>
./configure --with-libdir=lib64 --with-jpeg-dir=/usr/lib64<br>
<br>
HTH,<br>
<font color="#888888"><br>
--<br>
- Edo - mailto:<a href="mailto:ml2edwin@gmail.com">ml2edwin@gmail.com</a><br>
“The tongue of the righteous one is choice silver;<br>
the heart of the wicked one is worth little.”—Proverbs 10:20<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br>