0

我目前正在尝试使用 Mysql 本机驱动程序构建 PHP 5.3.28。

这是我的配置脚本的样子:

./configure --prefix=/usr/local/php53 \
--with-config-file-path=/etc/php53 \
--with-config-file-scan-dir=/etc/php53/php.d \
--enable-fpm \
--with-fpm-user=apache \
--with-fpm-group=apache \
--with-libdir=lib64 \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--enable-mbstring \
--disable-debug \
--disable-rpath \
--with-bz2 \
--with-curl \
--with-gettext \
--with-iconv \
--with-openssl \
--with-gd \
--with-mcrypt \
--with-pcre-regex \
--with-zlib

但是,当我设置“--with-mysql=mysqlnd \”时,我收到以下错误。

ext/mysqli/mysqli_warning.c:295: undefined reference to `mysql_warning_count'

我也仍然收到错误

Call to undefined method mysqli_stmt::get_result()

即使,我的 PHP 信息说安装了 mysql 和 mysqlnd。有人知道我在这里缺少什么吗?我不太擅长编译自己的 PHP 版本,但我需要这样做,因为我在我的服务器上运行多个 PHP 版本。

4

0 回答 0