当前位置:Gxlcms > 数据库问题 > Ubuntu为已经安装的PHP7单独编译mysqli

Ubuntu为已经安装的PHP7单独编译mysqli

时间:2021-07-01 10:21:17 帮助过:2人阅读

  会在该目录下生成configure等文件 [如果提示没有autoconf、m4错误,用 apt-get install 就行了]

然后执行: ./configure --with-php-config=/usr/local/php7/bin/php-config --with-mysqli 

最后执行: make && make install 

会在扩展目录中生成mysqli.so

 

编译安装pdo.so、pdo_mysql.so等都一样,进入ext/下对应的目录,执行上面操作,只需要换成对应的 --with-pdo、--with-pdo-mysql就好

Ubuntu为已经安装的PHP7单独编译mysqli

标签:

人气教程排行