configure: error: libjpeg.(a|so) not found

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
abednegoyulo
Posts: 550
Joined: 2007/12/26 06:24:38
Location: 127.0.0.2 44013

configure: error: libjpeg.(a|so) not found

Post by abednegoyulo » 2008/03/10 06:27:53

My centos version

[root@box php-5.2.5]# cat /proc/version
Linux version 2.6.18-53.1.13.el5 (mockbuild@builder6.centos.org) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Tue Feb 12 13:02:30 EST 2008

I have the following x86_64 packages

[root@box php-5.2.5]# rpm -qa | grep libjpeg
libjpeg-6b-37
libjpeg-devel-6b-37
[root@box php-5.2.5]# rpm -qa | grep libpng
libpng-1.2.10-7.1.el5_0.1
libpng-devel-1.2.10-7.1.el5_0.1
[root@box php-5.2.5]# rpm -qa | grep zlib
zlib-devel-1.2.3-3
zlib-1.2.3-3


The location of the libjpeg.so

[root@box php-5.2.5]# locate libjpeg.so
/usr/java/jre1.6.0_03/lib/amd64/libjpeg.so
/usr/lib64/libjpeg.so
/usr/lib64/libjpeg.so.62
/usr/lib64/libjpeg.so.62.0.0


The options that I am using on php

[root@box php-5.2.5]# more config.nice
#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/usr/local/php' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--with-mysql=/usr/local/mysql' \
'--enable-mbstring' \
'--with-mcrypt' \
'--with-gd' \
'--with-libdir=/usr/lib64' \
'--with-jpeg-dir=/usr/lib64' \
"$@"


The errors that I recieve

checking for GD support... yes
checking for the location of libjpeg... /usr/lib64
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.


Inside config.log

[root@box php-5.2.5]# tail config.log
configure:35088: checking for FreeType 2
configure:35114: checking for T1lib support
configure:35140: checking whether to enable truetype string function in GD
configure:35166: checking whether to enable JIS-mapped Japanese font support in GD
configure:35222: checking for fabsf
configure:35250: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:35234: warning: conflicting types for built-in function 'fabsf'
configure:35222: checking for floorf
configure:35250: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:35234: warning: conflicting types for built-in function 'floorf'

All I wanted is to just enable the gd of php. I am thinking that ./configure still seeks the file inside /usr/lib and not /usr/lib64 even though that I have configured it to use /usr/lib/64

Is there anyway of fixing this without using the i386 packages?

abednegoyulo
Posts: 550
Joined: 2007/12/26 06:24:38
Location: 127.0.0.2 44013

Re: configure: error: libjpeg.(a|so) not found

Post by abednegoyulo » 2008/03/10 08:33:32

FIXED

instead of --with-libdir=/usr/lib64 , i did --with-libdir=lib64

mariano
Posts: 37
Joined: 2006/02/14 19:45:02
Location: Cordoba, Argentina
Contact:

Re: configure: error: libjpeg.(a|so) not found

Post by mariano » 2008/09/04 09:01:57

Thanks a lot for posting your solution, that's what I was after.

Post Reply