分类:
2011-04-19 18:21:45
在64位centos上编译php时使用了如下参数:
cd php-5.2.11/
./configure --prefix=/usr/local/php/ \
--enable-fastcgi --enable-ftp --enable-mbstring --enable-bcmath \
--with-mysql=/usr/local/mysql/ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql \
--with-pcre-regex=yes --with-openssl --with-curl \
--enable-sockets --with-gd --enable-gd-native-ttf --with-mcrypt \
--with-jpeg-dir=/usr --with-libdir=lib64 \
--with-freetype-dir=/usr/ --with-zlib
编译时报错:
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr/local/mysql/.
Note that the MySQL client library is not bundled anymore!
应该是由于我使用了--with-libdir=lib64参数有关,解决办法 :
cd /usr/local/mysql/
ln -s lib lib64