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

HostSimplex

New member
Joined
Aug 1, 2008
Messages
3
I have searched all over google and every says to install libjpeg-devel which I have. I am trying to recompile php using ./build php n but no matter what I do I keep getting the dreaded message configure: error: libjpeg.(a|so) not found.
I have even recompiled jpeg-6b with shared enabled. I am using a centos 5.x box. Any help with this would be grateful.

Below is my configure in configure/ap2/configure.php5

Code:
./configure \
	--with-apxs2 \
	--with-curl=/usr/local/lib \
	--with-gd \
       --enable-gd-native-ttf \
       --with-ttf \
	--with-gettext \
	--with-jpeg-dir=/usr/local/lib \
	--with-freetype-dir=/usr/local/lib \
	--with-kerberos \
	--with-openssl \
	--with-mcrypt \
	--with-mhash \
	--with-mysql=/usr \
	--with-mysqli=/usr/bin/mysql_config \
	--with-pear \
	--with-png-dir=/usr/lib \
	--with-zlib \
	--with-zlib-dir=/usr/local/lib \
	--enable-zip \
	--with-iconv=/usr/local \
	--enable-bcmath \
	--enable-calendar \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-sockets \
       --with-mnogosearch=/usr/local/mnogosearch \
       --with-libdir=/usr/lib/mysql \
	--enable-mbstring

This is where it stops at with the error

Code:
checking for the location of libjpeg... /usr/local/lib
checking for the location of libpng... /usr/lib
checking for the location of libXpm... no
checking for FreeType 1.x support... yes
checking for FreeType 2... /usr/local/lib
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
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.

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

As you see all libraries are installed.

Code:
[root@host custombuild]# locate libjpeg.a
/usr/local/lib/libjpeg.a

Code:
/usr/local/lib/libjpeg.so

The last 4 lines of my config.log states

Code:
configure:35255: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/local//usr/lib/mysql -L/usr/local//usr/lib/mysql conftest.c -lcurl -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -liconv -lm -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -liconv -lm -lssl -lcrypto -ldl -lz 1>&5
configure:35239: warning: conflicting types for built-in function 'fabsf'
configure:35227: checking for floorf
configure:35255: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/local//usr/lib/mysql -L/usr/local//usr/lib/mysql conftest.c -lcurl -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -liconv -lm -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -liconv -lm -lssl -lcrypto -ldl -lz 1>&5
configure:35239: warning: conflicting types for built-in function 'floorf'
 
Last edited:
Already saw that topic, no help. It is just weird, I have just compiled 5 other boxes with --with-mnogosearch=/usr/local/mnogosearch and this is the only one that is giving troubles. The only one with DA on it as well. It is also not a x86-64 box as well.


checking for the location of libjpeg... /usr/lib
checking for the location of libpng... /usr/lib
checking for the location of libXpm... no
checking for FreeType 1.x support... yes
checking for FreeType 2... /usr/local/lib
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
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.

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
Last edited:
Did you look to see if the libjpeg files are on the server? Did you look at the configure.php5 file to make sure you've got the right path?

Jeff
 
At first I compile PHP4 with no issues. Tried PHP5 same problems, so then I compile enabled PHP5 CLI with PHP4CGI after that, it went smoothly. Do not know what with make it compile with no issue by enabling both, but it did.
 
See the URL given below. Hope this helps.

basilvarghese.co.cc/php-recompilation-errors-in-linux-work-arounds.html
 
Back
Top