当前位置: 技术问答>linux和unix
configure: error: libjpeg.(a|so) not found
来源: 互联网 发布时间:2016-05-07
本文导语: 您好!有个问题帮忙看看 配置情况: x84+centos5+gd-2.0.35.tar.bz+php5 php相关支持rpm的已经安装 //png #rpm -ivh libpng-1.2.10-7.0.2.x86_64.rpm //freetype #rpm -ivh freetype-2.2.1-19.el5.x86_64.rpm #rpm -ivh freetype-devel-2.2.1-19.el5.x86...
您好!有个问题帮忙看看
配置情况:
x84+centos5+gd-2.0.35.tar.bz+php5
php相关支持rpm的已经安装
//png
#rpm -ivh libpng-1.2.10-7.0.2.x86_64.rpm
//freetype
#rpm -ivh freetype-2.2.1-19.el5.x86_64.rpm
#rpm -ivh freetype-devel-2.2.1-19.el5.x86_64.rpm
//jpeg
#rpm -ivh libjpeg-6b-37.x86_64.rpm
//gif
#rpm -ivh giflib-4.1.3-7.1.el5.1.x86_64.rpm
安装php命令
#./configure -prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr --with-freetype-dir=/usr --with-gd=/usr/local/gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-libdir=lib64
安装日志
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... no
checking for Kerberos support... no
checking for PCRE support... yes
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... no
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... no
checking if we should use cURL for url streams... no
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... yes
checking for the location of libjpeg... /opt
checking for the location of libpng... /opt
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr
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
configure: error: libjpeg.(a|so) not found.
第2次尝试
安装
安装 jpegsrc.v6b.tar.gz 和 libpng-1.2.8-config.tar.gz
还是会出现相同的情况 请指教
配置情况:
x84+centos5+gd-2.0.35.tar.bz+php5
php相关支持rpm的已经安装
//png
#rpm -ivh libpng-1.2.10-7.0.2.x86_64.rpm
//freetype
#rpm -ivh freetype-2.2.1-19.el5.x86_64.rpm
#rpm -ivh freetype-devel-2.2.1-19.el5.x86_64.rpm
//jpeg
#rpm -ivh libjpeg-6b-37.x86_64.rpm
//gif
#rpm -ivh giflib-4.1.3-7.1.el5.1.x86_64.rpm
安装php命令
#./configure -prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr --with-freetype-dir=/usr --with-gd=/usr/local/gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-libdir=lib64
安装日志
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... no
checking for Kerberos support... no
checking for PCRE support... yes
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... no
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... no
checking if we should use cURL for url streams... no
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... yes
checking for the location of libjpeg... /opt
checking for the location of libpng... /opt
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr
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
configure: error: libjpeg.(a|so) not found.
第2次尝试
安装
安装 jpegsrc.v6b.tar.gz 和 libpng-1.2.8-config.tar.gz
还是会出现相同的情况 请指教
|
看来是32位和64位的都装了。你可以强制删除两个包,再重装64位的包。
rpm --allmatches --nodeps
rpm --allmatches --nodeps
|
试一试
rpm -e --allmatches libjpeg-6b-37
rpm -e --allmatches libjpeg-6b-37
|
lz 还是先看看 log 里的内容
然后确认 libjpeg.a/.so 是否存在
然后确认 libjpeg.a/.so 是否存在
|
jpegsrc.v6b.tar.gz libpng-1.2.8-config.tar.gz 编译之后有没有make install?
#./configure -prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr --with-freetype-dir=/usr --with-gd=/usr/local/gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-libdir=lib64
checking for the location of libjpeg... /opt
checking for the location of libpng... /opt
configure: error: libjpeg.(a|so) not found.
看红色的部分,似乎你install了,不过安装到/opt下了,而在configure命令指定的目录是/usr,跟这个不一致。
check一下。
#./configure -prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr --with-freetype-dir=/usr --with-gd=/usr/local/gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-libdir=lib64
checking for the location of libjpeg... /opt
checking for the location of libpng... /opt
configure: error: libjpeg.(a|so) not found.
看红色的部分,似乎你install了,不过安装到/opt下了,而在configure命令指定的目录是/usr,跟这个不一致。
check一下。
|
export PKG_CONFIG_PATH="your libjpeg path"
|
建议尝试下修改下环境变量 export PKG_CONFIG_PATH="your libjpeg path"~