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


configure:error:libjpeg.(a|so) not found解决
 
在安装过程php-5.2.14.tar.gz中执行  www.2cto.com  
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/hp/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap
 
的过程过程中突然包这个错:configure:error:libjpeg.(a|so) not found
 检查一下:
[root@cheng Nginxsource]# rpm -qa |grep libjpeg
libjpeg-6b-46.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64                #貌似我明明安装了
看了找不到库文件那我就给他复制一份:
1.          cp  -frp /usr/lib64/libjpeg.* /usr/lib/   #configure:error:libjpeg.(a|so) not found 报错搞定
 
2. 注意过程中还会提示" Configure: error: libpng.(also) not found."错误,解决办法和上面的一样.
cp -frp /usr/lib64/libpng* /usr/lib/
3.如果提示"configure: error: Cannot find ldap libraries in /usr/lib."
 
cp -frp /usr/lib64/libldap* /usr/lib
 
#好的搞定了报错

相关内容

    暂无相关文章