古城热线 发表于 2015-12-23 16:24:27

PHP 5.6.10 编译报错

安装的软件包如下:



[*]gcc gcc-c++ gd-devel libtool libjpeg-devel libpng-devel freetype-devel libxml2-devel zlib-devel bzip2-devel libcurl-devel libxslt-devel openssl-devel glibc-devel glib2-devel libmcrypt-devel

PHP 编译参数如下:



[*]./configure --prefix=/usr/local/php \

[*]--with-config-file-path=/usr/local/php --with-mysql=/usr/local/mysql/ \
[*]--with-mysqli=/usr/local/mysql/bin/mysql_config --with-gd --with-xsl --with-bz2 \
[*]--with-zlib --with-curl --with-pear --without-iconv --with-mcrypt \
[*]--with-gettext --with-openssl --with-libxml-dir --with-png-dir --with-jpeg-dir --with-freetype-dir \
[*]--with-libdir=lib64 --enable-ftp --enable-fpm --enable-exif --enable-soap --enable-bcmath --enable-calendar \
[*]--enable-sockets --enable-mbstring --enable-gd-native-ttf --disable-rpath --disable-debug

报错信息如下:
configure: error: Cannot find libmysqlclient under /usr/local/mysql/.
Note that the MySQL client library is not bundled anymore!

解决方法:ln -s /usr/local/mysql/lib /usr/local/mysql/lib64

configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no

解决方法:ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/
页: [1]
查看完整版本: PHP 5.6.10 编译报错