LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2011, 03:13 AM   #1
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Rep: Reputation: 9
configure: error: libjpeg.(a|so) not found :-)


I'm trying to install PHP 5 on my Linux box and I too have the error message: configure: "error: libjpeg.(a|so) not found" when running the configure command:

./configure \
--prefix=/home/stephane/programs/install \
--with-apxs2=/home/stephane/programs/install/apache/bin/apxs \
--with-config-file-path=/home/stephane/programs/php-5.2.14 \
--enable-libgcc \
--with-mysql=/home/stephane/programs/mysql \
--with-zlib \
--with-gd \
--with-png-dir=/usr/lib/i386-linux-gnu \
--with-jpeg-dir=/usr/lib/i386-linux-gnu \
--enable-gd-native-ttf \
--enable-ftp \
--enable-xml \
--enable-xml \
--with-bz2 \
--enable-wddx \
--without-pear \
--with-curl

I made sure the library is sitting in the specified directory:

stephane@stephane-ThinkPad-T43:help> ls -l /usr/lib/i386-linux-gnu/libjpeg.*
-rw-r--r-- 1 root root 164496 2011-03-24 08:15 /usr/lib/i386-linux-gnu/libjpeg.a
-rw-r--r-- 1 root root 933 2011-03-24 08:15 /usr/lib/i386-linux-gnu/libjpeg.la
lrwxrwxrwx 1 root root 17 2011-09-15 18:53 /usr/lib/i386-linux-gnu/libjpeg.so -> libjpeg.so.62.0.0
lrwxrwxrwx 1 root root 17 2011-09-13 12:10 /usr/lib/i386-linux-gnu/libjpeg.so.62 -> libjpeg.so.62.0.0
-rw-r--r-- 1 root root 124304 2011-03-24 08:15 /usr/lib/i386-linux-gnu/libjpeg.so.62.0.0

What could be wrong here ?
 
Old 09-16-2011, 03:23 AM   #2
xtremebeing
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 1
You need to install the libjpeg dev library.

On Fedora, yum install libjpeg-devel or yum install libjpeg-devel.x86_64 if you have a 64bit platform.
 
Old 09-16-2011, 03:27 AM   #3
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
The libjpeg-dev was already installed:

Code:
stephane-ThinkPad-T43 help # apt-get install libjpeg-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libjpeg62-dev' instead of 'libjpeg-dev'
libjpeg62-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
 
Old 09-16-2011, 03:30 AM   #4
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
I also now installed the release 8 of the library libjpeg8-dev:

Code:
stephane-ThinkPad-T43 help # apt-get install libjpeg8-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfontconfig1-dev libxpm-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libjpeg8
The following packages will be REMOVED:
  libgd2-xpm-dev libjpeg62-dev
The following NEW packages will be installed:
  libjpeg8 libjpeg8-dev
0 upgraded, 2 newly installed, 2 to remove and 34 not upgraded.
Need to get 356 kB of archives.
After this operation, 569 kB disk space will be freed.
Do you want to continue [Y/n]? 
Get:1 http://archive.ubuntu.com/ubuntu/ natty/main libjpeg8 i386 8b-1 [127 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ natty/main libjpeg8-dev i386 8b-1 [229 kB]
Fetched 356 kB in 1s (234 kB/s)       
(Reading database ... 135992 files and directories currently installed.)
Removing libgd2-xpm-dev ...
Removing libjpeg62-dev ...
Processing triggers for man-db ...
Selecting previously deselected package libjpeg8.
(Reading database ... 135936 files and directories currently installed.)
Unpacking libjpeg8 (from .../libjpeg8_8b-1_i386.deb) ...
Selecting previously deselected package libjpeg8-dev.
Unpacking libjpeg8-dev (from .../libjpeg8-dev_8b-1_i386.deb) ...
Setting up libjpeg8 (8b-1) ...
Setting up libjpeg8-dev (8b-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
But I still have the exact same error.

A locate gives the following:

Code:
stephane@stephane-ThinkPad-T43:help> locate libjpeg | grep so
/home/stephane/icon/dope/instal/Dope_am_Stiel_B27_EN/utils/java_jdk_linux-x86-32/jre/lib/i386/libjpeg.so
/home/stephane/programs/jdk1.6.0_21/jre/lib/i386/libjpeg.so
/usr/lib/gthumb/extensions/libjpeg_utils.so
/usr/lib/i386-linux-gnu/libjpeg.so
/usr/lib/i386-linux-gnu/libjpeg.so.62
/usr/lib/i386-linux-gnu/libjpeg.so.62.0.0
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libjpeg.so
Code:
stephane@stephane-ThinkPad-T43:help> locate libjpeg | grep "jpeg.a"
/usr/lib/i386-linux-gnu/libjpeg.a
 
Old 09-16-2011, 03:36 AM   #5
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
I also tried with adding the following option:

--with-libdir=/usr/lib/i386-linux-gnu

but it didn't help.

Same with the option:

--with-libdir=i386-linux-gnu

which didn't help either.
 
Old 09-16-2011, 03:39 AM   #6
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
I also have the libpng-dev already installed by the way:

Quote:
stephane-ThinkPad-T43 help # apt-get install libpng-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
libpng12-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libfontconfig1-dev libxpm-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
stephane-ThinkPad-T43 help #
stephane-ThinkPad-T43 help # apt-get install libpng12-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpng12-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libfontconfig1-dev libxpm-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
 
Old 09-16-2011, 03:43 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
What is the exact error message in the config.log file? Maybe it gives you some clue. Usually the --with-something-dir options of configure accept the name of the full installation directory of the requested library under which it looks for the lib and include sub-directories, e.g.
Code:
/usr/lib/i386-linux-gnu/lib
/usr/lib/i386-linux-gnu/include
Since it is not a standard location, you can try to use the CFLAGS environment variable for the include path (if needed) and the LDFLAGS and LIBS variables for the lib path and the library name respectively. In alternative you can try to create a symbolic link in /usr/lib pointing to /usr/lib/i386-linux-gnu/libjpeg.a or /usr/lib/i386-linux-gnu/libjpeg.so (or both).
 
1 members found this post helpful.
Old 09-16-2011, 04:07 AM   #8
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
@colucix
Thanks for the comment. In fact, you can see I already tried to specify the full path to the library file.
I'll try adding a symbolic link in /usr/lib which feels like the easiest way.
 
Old 09-16-2011, 04:14 AM   #9
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
I could not create the symbolic link in /usr/lib because it already existed:

Quote:
stephane-ThinkPad-T43 lib # ls -l libjpeg.*
-rw-r--r-- 1 root root 255630 2010-05-21 01:05 libjpeg.a
-rw-r--r-- 1 root root 914 2010-05-21 01:05 libjpeg.la
lrwxrwxrwx 1 root root 16 2011-09-16 09:26 libjpeg.so -> libjpeg.so.8.0.2
lrwxrwxrwx 1 root root 16 2011-09-16 09:26 libjpeg.so.8 -> libjpeg.so.8.0.2
-rw-r--r-- 1 root root 218536 2010-05-21 01:05 libjpeg.so.8.0.2
 
Old 09-16-2011, 04:15 AM   #10
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
My php release is php-5.2.14
 
Old 09-16-2011, 04:35 AM   #11
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Looking at the ./configure code, here is the relevant part:
Code:
    for i in $PHP_JPEG_DIR /usr/local /usr; do
      test -f $i/$PHP_LIBDIR/libjpeg.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libjpeg.a && GD_JPEG_DIR=$i && break
    done

    if test -z "$GD_JPEG_DIR"; then
      { echo "configure: error: libjpeg.(a|so) not found." 1>&2; exit 1; }
    fi
where PHP_JPEG_DIR is the value you provide with --with-jpeg-dir and PHP_LIBDIR is the value from --with-libdir. If you have links in /usr/lib, they should be:
Code:
--with-libdir=lib
--with-jpeg-dir=/usr
anyway, these are the default values if nothing is specified, hence I suspect a bug of some type. Any detailed error message in config.log? What if you try to install a more recent version (if possible)?
 
Old 09-16-2011, 04:49 AM   #12
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
I added the two options:

--with-libdir=lib
--with-jpeg-dir=/usr

but the error message remains the same.
 
Old 09-16-2011, 04:52 AM   #13
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
The config.log file shows this:

configure:35139: checking for GD support
configure:35187: checking for the location of libjpeg
configure:35215: checking for the location of libpng
configure:35270: checking for the location of libXpm
configure:35296: checking for FreeType 1.x support
configure:35322: checking for FreeType 2
configure:35348: checking for T1lib support
configure:35374: checking whether to enable truetype string function in GD
configure:35400: checking whether to enable JIS-mapped Japanese font support in GD
configure:35456: checking for fabsf
configure:35456: checking for floorf
configure:35656: checking for jpeg_read_header in -ljpeg
configure:35675: gcc -o conftest -g -O2 -Wl,-rpath,/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 conftest.c -ljpeg -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lgcc -lxml2 -lcurl -lxml2 1>&5

It doesn't really show any error message in it.

---------- Post added 09-16-11 at 08:53 AM ----------

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1888: checking for Cygwin environment
configure:1921: checking for mingw32 environment
configure:1952: checking for egrep
configure:1967: checking for a sed that does not truncate output
configure:2117: checking host system type
configure:2138: checking target system type
configure:2250: checking for gcc
configure:2363: checking whether the C compiler (gcc ) works
configure:2379: gcc -o conftest conftest.c 1>&5
configure:2405: checking whether the C compiler (gcc ) is a cross-compiler
configure:2410: checking whether we are using GNU C
configure:2438: checking whether gcc accepts -g
configure:2470: checking how to run the C preprocessor
configure:2552: checking for icc
configure:2576: checking for suncc
configure:2601: checking whether gcc and cc understand -c and -o together
configure:2652: checking how to run the C preprocessor
configure:2732: checking for AIX
configure:2756: checking whether ln -s works
configure:2781: checking for system library directory
configure:2807: checking whether to enable runpaths
configure:2831: checking if compiler supports -R
configure:2864: checking if compiler supports -Wl,-rpath,
configure:2910: checking for gawk
configure:2970: checking for bison
configure:2970: checking for byacc
configure:3010: checking for bison version
configure:3050: checking for flex
configure:3084: checking for yywrap in -ll
configure:3191: checking for working const
configure:3315: checking for re2c
configure:3621: checking whether to force non-PIC code in shared modules
configure:3651: checking whether /dev/urandom exists
configure:3730: gcc -o conftest -g -O2 -pthread conftest.c 1>&5
configure:3750: checking for pthreads_cflags
configure:3820: checking for pthreads_lib
configure:3994: checking for AOLserver support
configure:4251: checking for Apache 1.x module support via DSO through APXS
configure:4574: checking for Apache 1.x module support
configure:5407: checking whether to enable Apache charset compatibility option
configure:5580: checking for Apache 2.0 filter-module support via DSO through APXS
configure:6428: checking for Apache 2.0 handler-module support via DSO through APXS
configure:7277: checking for Apache 1.x (hooks) module support via DSO through APXS
configure:7600: checking for Apache 1.x (hooks) module support
configure:8433: checking whether to enable Apache charset compatibility option
configure:8607: checking for Caudium support
configure:8958: checking for CLI build
configure:9008: checking for Continuity support
configure:9285: checking for embedded SAPI library support
configure:9502: checking for Zeus ISAPI support
configure:9751: checking for Milter support
configure:10035: checking for NSAPI support
configure:10387: checking for PHTTPD support
configure:10633: checking for Pi3Web support
configure:11000: checking whether Roxen module is build using ZTS
configure:11024: checking for Roxen/Pike support
configure:11302: checking for thttpd
configure:11563: checking for TUX
configure:11809: checking for webjames
configure:12437: checking for chosen SAPI module
configure:12494: checking for sendmail
configure:12533: checking whether system uses EBCDIC
configure:12580: checking whether byte ordering is bigendian
configure:12632: checking whether writing to stdout works
configure:12736: checking for socket
configure:12764: gcc -o conftest -g -O2 conftest.c 1>&5
configure:12993: checking for socketpair
configure:13021: gcc -o conftest -g -O2 conftest.c 1>&5
configure:13250: checking for htonl
configure:13278: gcc -o conftest -g -O2 conftest.c 1>&5
configure:13507: checking for gethostname
configure:13535: gcc -o conftest -g -O2 conftest.c 1>&5
configure:13764: checking for gethostbyaddr
configure:13792: gcc -o conftest -g -O2 conftest.c 1>&5
configure:14021: checking for yp_get_default_domain
configure:14049: gcc -o conftest -g -O2 conftest.c 1>&5
/tmp/ccR6JswC.o: In function `main':
/home/stephane/programs/php-5.2.14/configure:14043: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14026 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char yp_get_default_domain(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
choke me
#else
yp_get_default_domain();
#endif

; return 0; }
configure:14067: checking for __yp_get_default_domain
configure:14095: gcc -o conftest -g -O2 conftest.c 1>&5
/tmp/cc0cjb2K.o: In function `main':
/home/stephane/programs/php-5.2.14/configure:14089: undefined reference to `__yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14072 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char __yp_get_default_domain(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub___yp_get_default_domain) || defined (__stub_____yp_get_default_domain)
choke me
#else
__yp_get_default_domain();
#endif

; return 0; }
configure:14133: checking for yp_get_default_domain in -lnsl
configure:14152: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5
configure:14227: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5
configure:14279: checking for dlopen
configure:14307: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5
/tmp/ccWII9Z3.o: In function `main':
/home/stephane/programs/php-5.2.14/configure:14301: undefined reference to `dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14284 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char dlopen(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dlopen();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
dlopen();
#endif

; return 0; }
configure:14325: checking for __dlopen
configure:14353: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5
/tmp/ccbQdkx9.o: In function `main':
/home/stephane/programs/php-5.2.14/configure:14347: undefined reference to `__dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14330 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char __dlopen(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __dlopen();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub___dlopen) || defined (__stub_____dlopen)
choke me
#else
__dlopen();
#endif

; return 0; }
configure:14391: checking for dlopen in -ldl
configure:14410: gcc -o conftest -g -O2 conftest.c -ldl -lnsl 1>&5
configure:14485: gcc -o conftest -g -O2 conftest.c -lnsl -ldl 1>&5
configure:14537: checking for sin in -lm
configure:14590: checking for res_search
configure:14618: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl 1>&5
/tmp/ccQVqS8g.o: In function `main':
/home/stephane/programs/php-5.2.14/configure:14612: undefined reference to `res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14595 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char res_search(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char res_search();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_res_search) || defined (__stub___res_search)
choke me
#else
res_search();
#endif

; return 0; }
configure:14636: checking for __res_search
configure:14664: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl 1>&5
/tmp/ccKR95jq.o: In function `main':
/home/stephane/programs/php-5.2.14/configure:14658: undefined reference to `__res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14641 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char __res_search(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __res_search();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub___res_search) || defined (__stub_____res_search)
choke me
#else
__res_search();
#endif

; return 0; }
configure:14702: checking for res_search in -lresolv
configure:14721: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5
configure:14796: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl -lresolv 1>&5
configure:15126: checking for inet_aton
configure:15154: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5
configure:15522: checking for dn_skipname
configure:15550: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5
/tmp/cc1Tdh2Q.o: In function `main':
/home/stephane/programs/php-5.2.14/configure:15544: undefined reference to `dn_skipname'
collect2: ld returned 1 exit status
configure: failed program was:
#line 15527 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char dn_skipname(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dn_skipname();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_dn_skipname) || defined (__stub___dn_skipname)
choke me
#else
dn_skipname();
#endif

; return 0; }
configure:15568: checking for __dn_skipname
configure:15596: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5
configure:15915: checking for ANSI C header files
configure:16023: checking for dirent.h that defines DIR
configure:16061: checking for opendir in -ldir
configure:16202: checking for inttypes.h
configure:16202: checking for stdint.h
configure:16202: checking for dirent.h
configure:16202: checking for ApplicationServices/ApplicationServices.h
configure:16202: checking for sys/param.h
configure:16202: checking for sys/types.h
configure:16202: checking for sys/time.h
configure:16202: checking for netinet/in.h
configure:16202: checking for alloca.h
configure:16202: checking for arpa/inet.h
configure:16202: checking for arpa/nameser.h
configure:16202: checking for assert.h
configure:16202: checking for crypt.h
configure:16202: checking for fcntl.h
configure:16202: checking for grp.h
configure:16202: checking for ieeefp.h
configure:16202: checking for langinfo.h
configure:16202: checking for limits.h
configure:16202: checking for locale.h
configure:16202: checking for monetary.h
configure:16202: checking for netdb.h
configure:16202: checking for pwd.h
configure:16202: checking for resolv.h
configure:16202: checking for signal.h
configure:16202: checking for stdarg.h
configure:16202: checking for stdlib.h
configure:16202: checking for string.h
configure:16202: checking for syslog.h
configure:16202: checking for sysexits.h
configure:16202: checking for sys/ioctl.h
configure:16202: checking for sys/file.h
configure:16202: checking for sys/mman.h
configure:16202: checking for sys/mount.h
configure:16202: checking for sys/poll.h
configure:16202: checking for sys/resource.h
configure:16202: checking for sys/select.h
configure:16202: checking for sys/socket.h
configure:16202: checking for sys/stat.h
configure:16202: checking for sys/statfs.h
configure:16202: checking for sys/statvfs.h
configure:16202: checking for sys/vfs.h
configure:16202: checking for sys/sysexits.h
configure:16202: checking for sys/varargs.h
configure:16202: checking for sys/wait.h
configure:16202: checking for sys/loadavg.h
configure:16202: checking for termios.h
configure:16202: checking for unistd.h
configure:16202: checking for unix.h
configure:16202: checking for utime.h
configure:16202: checking for sys/utsname.h
configure:16202: checking for sys/ipc.h
configure:16202: checking for dlfcn.h
configure:16202: checking for assert.h
configure:16247: checking for mach-o/dyld.h
configure:16288: checking for fopencookie
configure:16348: gcc -c -g -O2 conftest.c 1>&5
configure:16399: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5
configure: In function 'main':
configure:16392:5: warning: incompatible implicit declaration of built-in function 'exit'
configure:16463: checking for broken getcwd
configure:16478: checking for broken libc stdio
configure:16567: checking whether struct tm is in sys/time.h or time.h
configure:16601: checking for tm_zone in struct tm
configure:16673: checking for missing declarations of reentrant functions
configure:16682: gcc -c -g -O2 conftest.c 1>&5
configure:16707: gcc -c -g -O2 conftest.c 1>&5
configure:16732: gcc -c -g -O2 conftest.c 1>&5
configure:16757: gcc -c -g -O2 conftest.c 1>&5
configure:16782: gcc -c -g -O2 conftest.c 1>&5
configure:16803: checking for fclose declaration
configure:16812: gcc -c -g -O2 conftest.c 1>&5
configure:16838: checking for tm_gmtoff in struct tm
configure:16874: checking for struct flock
configure:16916: checking for socklen_t
configure:16959: checking size of size_t
configure:16998: checking size of long long
configure:17037: checking size of long long int
configure:17076: checking size of long
configure:17115: checking size of int
configure:17156: checking size of intmax_t
configure:17236: checking size of ssize_t
configure:17316: checking size of ptrdiff_t
configure:17396: checking for st_blksize in struct stat
configure:17431: checking for st_blocks in struct stat
configure:17471: checking for st_rdev in struct stat
configure:17506: checking for size_t
configure:17539: checking for uid_t in sys/types.h
configure:17575: checking for struct sockaddr_storage
configure:17609: checking for field sa_len in struct sockaddr
configure:17646: checking for IPv6 support
configure:17676: checking for vprintf
configure:17863: checking for alphasort
configure:17863: checking for asctime_r
configure:17863: checking for chroot
configure:17863: checking for ctime_r
configure:17863: checking for cuserid
configure:17863: checking for crypt
configure:17863: checking for flock
configure:17863: checking for ftok
configure:17863: checking for funopen
configure:17863: checking for gai_strerror
configure:17863: checking for gcvt
configure:17863: checking for getloadavg
configure:17863: checking for getlogin
configure:17863: checking for getprotobyname
configure:17863: checking for getprotobynumber
configure:17863: checking for getservbyname
configure:17863: checking for getservbyport
configure:17863: checking for getrusage
configure:17863: checking for gettimeofday
configure:17863: checking for gmtime_r
configure:17863: checking for getpwnam_r
configure:17863: checking for getgrnam_r
configure:17863: checking for getpwuid_r
configure:17863: checking for grantpt
configure:17863: checking for inet_ntoa
configure:17863: checking for inet_ntop
configure:17863: checking for inet_pton
configure:17863: checking for isascii
configure:17863: checking for link
configure:17863: checking for localtime_r
configure:17863: checking for lockf
configure:17863: checking for lchown
configure:17863: checking for lrand48
configure:17863: checking for memcpy
configure:17863: checking for memmove
configure:17863: checking for mkstemp
configure:17863: checking for mmap
configure:17863: checking for nl_langinfo
configure:17863: checking for perror
configure:17863: checking for poll
configure:17863: checking for ptsname
configure:17863: checking for putenv
configure:17863: checking for realpath
configure:17863: checking for random
configure:17863: checking for rand_r
configure:17863: checking for regcomp
configure:17863: checking for res_search
configure:17863: checking for scandir
configure:17863: checking for setitimer
configure:17863: checking for setlocale
configure:17863: checking for localeconv
configure:17863: checking for setenv
configure:17863: checking for setpgid
configure:17863: checking for setsockopt
configure:17863: checking for setvbuf
configure:17863: checking for shutdown
configure:17863: checking for sin
configure:17863: checking for snprintf
configure:17863: checking for srand48
configure:17863: checking for srandom
configure:17863: checking for statfs
configure:17863: checking for statvfs
configure:17863: checking for std_syslog
configure:17863: checking for strcasecmp
configure:17863: checking for strcoll
configure:17863: checking for strdup
configure:17863: checking for strerror
configure:17863: checking for strftime
configure:17863: checking for strnlen
configure:17863: checking for strptime
configure:17863: checking for strstr
configure:17863: checking for strtok_r
configure:17863: checking for symlink
configure:17863: checking for tempnam
configure:17863: checking for tzset
configure:17863: checking for unlockpt
configure:17863: checking for unsetenv
configure:17863: checking for usleep
configure:17863: checking for utime
configure:17863: checking for vsnprintf
configure:17917: checking for nanosleep
configure:18068: checking for getaddrinfo
configure:18158: checking for strlcat
configure:18158: checking for strlcpy
configure:18158: checking for getopt
configure:18213: checking whether utime accepts a null argument
configure:18260: checking for working alloca.h
configure:18293: checking for alloca
configure:18493: checking for declared timezone
configure:18540: checking for type of reentrant time-related functions
configure:18639: checking for readdir_r
configure:18689: checking for type of readdir_r
configure:18788: checking for in_addr_t
configure:18827: checking for crypt_r
configure:19012: checking whether to include gcov symbols
configure:19175: checking whether to include debugging symbols
configure:19226: checking layout of installed files
configure:19261: checking path to configuration file
configure:19295: checking where to scan for configuration files
configure:19331: checking whether to enable safe mode by default
configure:19366: checking for safe mode exec dir
configure:19410: checking whether to enable PHP's own SIGCHLD handler
configure:19448: checking whether to enable magic quotes by default
configure:19486: checking whether to explicitly link against libgcc
configure:19566: checking whether to enable short tags by default
configure:19604: checking whether to enable dmalloc
configure:19692: checking whether to enable IPv6 support
configure:19722: checking how big to make fd sets
configure:19793: checking size of long
configure:19832: checking size of int
configure:19872: checking for int32_t
configure:19920: checking for uint32_t
configure:19977: checking for sys/types.h
configure:19977: checking for inttypes.h
configure:19977: checking for stdint.h
configure:19977: checking for string.h
configure:19977: checking for stdlib.h
configure:20017: checking for strtoll
configure:20017: checking for atoll
configure:20017: checking for strftime
configure:20471: checking whether to enable LIBXML support
configure:20519: checking libxml2 install dir
configure:20548: checking for xml2-config path
configure:20706: checking whether libxml build works
configure:21098: checking for OpenSSL support
configure:21145: checking for Kerberos support
configure:22574: checking for PCRE support
configure:23428: checking for ZLIB support
configure:23475: checking if the location of ZLIB install directory is defined
configure:23921: checking for gzgets in -lz
configure:24080: checking whether to enable bc style precision math functions
configure:24448: checking for BZip2 support
configure:24496: checking for BZip2 in default path
configure:24609: checking for BZ2_bzerror in -lbz2
configure:25096: checking whether to enable calendar conversion support
configure:25443: checking whether to enable ctype functions
configure:25790: checking for cURL support
configure:25837: checking if we should use cURL for url streams
configure:25864: checking for cURL in default path
configure:25882: checking for cURL 7.10.5 or greater
configure:26120: checking for SSL support in libcurl
configure:26133: checking how to run the C preprocessor
configure:26213: checking for openssl support in libcurl
configure:26239: gcc -o conftest -Wl,-rpath,/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 conftest.c -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lgcc -lxml2 -lcurl 1>&5
configure:26247: checking for openssl/crypto.h
configure:26302: checking for gnutls support in libcurl
configure:26328: gcc -o conftest -Wl,-rpath,/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 conftest.c -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lgcc -lxml2 -lcurl 1>&5
configure: failed program was:
#line 26309 "configure"
#include "confdefs.h"

#include <curl/curl.h>

int main(int argc, char *argv[])
{
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);

if (data && data->ssl_version && *data->ssl_version) {
const char *ptr = data->ssl_version;

while(*ptr == ' ') ++ptr;
return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
}
return 1;
}

configure:26486: checking for curl_easy_perform in -lcurl
configure:26641: checking for curl_version_info in -lcurl
configure:26794: checking for curl_easy_strerror in -lcurl
configure:26947: checking for curl_multi_strerror in -lcurl
configure:27867: checking for QDBM support
configure:28198: checking for GDBM support
configure:28515: checking for NDBM support
configure:28834: checking for Berkeley DB4 support
configure:29157: checking for Berkeley DB3 support
configure:29480: checking for Berkeley DB2 support
configure:29719: checking for DB1 support
configure:30074: checking for DBM support
configure:30483: checking for CDB support
configure:30514: checking for INI File support
configure:30545: checking for FlatFile support
configure:30560: checking whether to enable DBA interface
configure:30890: checking whether to enable dbase support
configure:31237: checking whether to enable DOM support
configure:31316: checking for xml2-config path
configure:31474: checking whether libxml build works
configure:31924: checking whether to enable EXIF (metadata from images) support
configure:32271: checking for FrontBase SQL92 (fbsql) support
configure:32778: checking for FDF support
configure:33609: checking whether to enable input filter support
configure:33656: checking pcre install prefix
configure:34075: checking whether to enable FTP support
configure:34122: checking OpenSSL dir for FTP
configure:35139: checking for GD support
configure:35187: checking for the location of libjpeg
configure:35215: checking for the location of libpng
configure:35270: checking for the location of libXpm
configure:35296: checking for FreeType 1.x support
configure:35322: checking for FreeType 2
configure:35348: checking for T1lib support
configure:35374: checking whether to enable truetype string function in GD
configure:35400: checking whether to enable JIS-mapped Japanese font support in GD
configure:35456: checking for fabsf
configure:35456: checking for floorf
configure:35656: checking for jpeg_read_header in -ljpeg
configure:35675: gcc -o conftest -g -O2 -Wl,-rpath,/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 conftest.c -ljpeg -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lgcc -lxml2 -lcurl -lxml2 1>&5
 
Old 09-16-2011, 05:06 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,104

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
Debian uses this configure option for jpeg :

--with-jpeg-dir=shared,/usr

( From the file 'rules', Debian Lenny, php5_5.2.6 and
Debian Wheezy, php5_5.3.8 ).
 
Old 09-16-2011, 05:39 AM   #15
stephaneeybert
Member
 
Registered: Feb 2005
Posts: 32

Original Poster
Rep: Reputation: 9
Thanks, just tried it with the following configure command:

./configure \
--prefix=/home/stephane/programs/install \
--with-apxs2=/home/stephane/programs/install/apache/bin/apxs \
--with-config-file-path=/home/stephane/programs/php-5.2.14 \
--enable-libgcc \
--with-mysql=/home/stephane/programs/mysql \
--with-zlib \
--with-png-dir=/usr/lib/i386-linux-gnu \
--with-jpeg-dir=/usr/lib/i386-linux-gnu \
--with-jpeg-dir=shared,/usr \
--with-gd \
--enable-gd-native-ttf \
--enable-ftp \
--enable-xml \
--enable-xml \
--with-bz2 \
--enable-wddx \
--without-pear \
--with-curl

But I still got the exact same error message:

checking for jpeg_read_header in -ljpeg... yes
configure: error: libpng.(a|so) not found.

I'm using Linux Mint 11 Katya.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to install php5 - configure: error: libjpeg.(a|so) not found. vikram_cvk Linux - Software 6 11-01-2009 09:00 AM
configure: error: libjpeg.(a|so) not found bipinkdas Ubuntu 3 01-02-2007 02:05 AM
libjpeg not found lord_cedrich Linux - General 3 10-31-2006 07:32 PM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration