编译php出错:configure: error: libjpeg.(a|so) not found.
代码:
0 |
[root@Byrd /tmp]# ./configure --prefix=/byrd/server/php-5.2.17 --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic |
解决方法:
0 1 |
[root@Byrd php-5.2.17]# yum install libjpeg* [root@Byrd php-5.2.17]# ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so |
libpng.so同理!
申明:本文由BYRD原创(基于Centos6.4 php-5.2.17),未经许可禁止转载!SourceByrd's Weblog-https://note.t4x.org/error/configure-error-libjpeg-aso-not-found/ SourceByrd's Weblog-https://note.t4x.org/error/configure-error-libjpeg-aso-not-found/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!