Configure: error: libjpeg. (a | so) not found: Run www.2cto.com in php-5.2.14.tar.gz. /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 --- 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 -- -ldap -- with-ldap-sasl -- with-xmlrpc -- enable-zip -- enable-soap: configure: error: libjpeg. (a | so) not found check: [root @ cheng Nginxsource] # rpm-qa | grep libjpeglibjpeg-6b-46.el6.x86_64libjpeg-devel-6b-46.el6.x86_64 # It seems that I obviously installed and can not find the library file, then I copy it to him: 1. cp-frp/usr/lib64/libjpeg. */usr/lib/# configure: error: libjpeg. (a | so) not found returns an error. 2. note that the message "Configure: error: libpng. (also) not found. "error. The solution is the same as above. cp-frp/usr/lib64/libpng */usr/lib/3. if the message "configure: error: Cannot find ldap libraries in/usr/lib. "cp-frp/usr/lib64/libldap */usr/lib # An error is returned.