php5.6.4编译安装mysqli

openssl编译前记得编译动态库(./config shared)

先编译mysqlnd

进入源码目录下的ext/mysqlnd

cp config9.m4 config.m4

phpize

export PHP_OPENSSL_DIR=yes

./configure --with-php-config=php-config

make && make install

 

进入源码目录下的ext/mysqli

phpize

./configure --with-php-config=php-config  --with-mysqli=/usr/bin/mysql_config

make && make install

你可能感兴趣的:(php5.6.4编译安装mysqli)