Jump to content

Recommended Posts

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, with DirectAdmin installed. Any help with this would be grateful.

 

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

 

./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

 

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.

 

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

 

/usr/local/lib/libjpeg.so

 

The last 4 lines of my  config.log states

 

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'

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.