编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
(问题产生,mysql是yum安装的,libmysqlclient* 一般存放在 /usr/lib64/mysql/)
find / -name "libmysqlclient"
cp /usr/lib64/mysql/libmysqlclient* /usrl/lib/
./configure
--prefix=/usr/local/php56
--with-config-file-path=/usr/local/php56/etc
--with-mysql=/usr
--with-mysqli=/usr/bin/mysql_config
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-pdo-mysql=/usr
--with-gd=/usr/local/libgd
--with-png-dir=/usr/local/libpng
--with-jpeg-dir=/usr/local/jpeg
--with-freetype-dir=/usr/local/freetype
--with-xpm-dir=/usr/lib64
--with-vpx-dir=/usr/local/libvpx/
--with-zlib-dir=/usr/local/zlib
--with-t1lib=/usr/local/t1lib
--with-iconv
--enable-libxml
--enable-xml
--enable-bcmath
--enable-shmop
--enable-sysvsem
--enable-inline-optimization
--enable-opcache
--enable-mbregex
--enable-fpm
--enable-mbstring
--enable-ftp
--enable-gd-native-ttf
--with-openssl
--enable-pcntl
--enable-sockets
--with-xmlrpc
--enable-zip
--enable-soap
--without-pear
--with-gettext
--enable-session
--with-mcrypt
--with-curl
--enable-ctype
--enable-mysqlnd