FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-14-2011, 06:18 AM
"Nguyen Vu Hung (VNC)"
 
Default php-5.3.6 fails on CentOS 5.6 64 bit

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
installed,

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"?



BR,



Nguyễn Vũ* Hưng









_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-14-2011, 06:21 AM
"Mattias Geniar"
 
Default php-5.3.6 fails on CentOS 5.6 64 bit

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

This should also have been fixed with "--with-libdir=lib64" as it'll look in /lib by default, and not /lib64 for your x64 system.

Regards,
M.

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-14-2011, 08:08 AM
Edo
 
Default php-5.3.6 fails on CentOS 5.6 64 bit

Hi,


On Thursday, July 14, 2011 at 3:18 PM, Nguyen Vu Hung (VNC) wrote:


[ ... ]

> Though libpng-devel and libjpeg-devel (both i386 and x64 rpms) are installed,
> 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

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.

> 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?

It is. Did you check with “ldconfig -v”?

> 4. Why it is "--with-jpeg-dir=/usr" but not "--with-jpeg-dir=/usr/lib64"?

That worked because you have both i386 and x64 RPMs installed.

As already pointed out, you could have fixed that by using “--with-libdir=lib64”.

So, if you want to use /usr/lib64, try the following instead:

./configure --with-libdir=lib64 --with-jpeg-dir=/usr/lib64

HTH,

--
- Edo - mailto:ml2edwin@gmail.com
“The tongue of the righteous one is choice silver;
the heart of the wicked one is worth little.”—Proverbs 10:20


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-14-2011, 09:15 AM
Silviu Adrian Joian
 
Default php-5.3.6 fails on CentOS 5.6 64 bit

Hi,

Any reason why you want to compile it and not use the packages from IUS http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/repoview/php53u.html


On Thu, Jul 14, 2011 at 10:08 AM, Edo <ml2edwin@gmail.com> wrote:

Hi,





On Thursday, July 14, 2011 at 3:18 PM, Nguyen Vu Hung (VNC) wrote:





[ ... ]



> Though libpng-devel and libjpeg-devel (both i386 and x64 rpms) are installed,

> *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



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.



> *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?



It is. Did you check with “ldconfig -v”?



> *4. Why it is "--with-jpeg-dir=/usr" but not "--with-jpeg-dir=/usr/lib64"?



That worked because you have both i386 and x64 RPMs installed.



As already pointed out, you could have fixed that by using “--with-libdir=lib64”.



So, if you want to use /usr/lib64, try the following instead:



./configure --with-libdir=lib64 --with-jpeg-dir=/usr/lib64



HTH,



--

- Edo - mailto:ml2edwin@gmail.com

“The tongue of the righteous one is choice silver;

the heart of the wicked one is worth little.”—Proverbs 10:20





_______________________________________________

CentOS mailing list

CentOS@centos.org

http://lists.centos.org/mailman/listinfo/centos



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org