安装PHP之PDO_MYSQL扩展安装步骤(转) http://www.cnblogs.com/qq78292959/p/4084868.html cd /wdzj/source wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz tar -zxvf PDO_MYSQL-1.0.2.tgz cd PDO_MYSQL-1.0.2 /wdzj/lnmp/php5.6.11/bin/phpize ./configure -with-php-config=/wdzj/lnmp/php5.6.11/bin/php-config -with-pdo-mysql=/wdzj/lnmp/mysql ln -s /wdzj/lnmp/mysql/include/* /usr/local/include/ make && make install cp /wdzj/source/php-5.6.11/php.ini-production /wdzj/lnmp/php5.6.11/lib/php.ini cp /wdzj/lnmp/php5.6.11/lib/php.ini /wdzj/lnmp/php5.6.11/lib/php.ini.`date +%F` echo "/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so" >>/wdzj/lnmp/php5.6.11/lib/php.ini 重启php /etc/init.d/php-fpm restart php -m |grep pdo_mysql ##如果有就安装成功 /wdzj/lnmp/nginx/bin:/wdzj/lnmp/nginx/sbin:/wdzj/lnmp/php5.6.11/bin:/wdzj/lnmp/mysql/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin 错误解决:: /wdzj/lnmp/php5.6.11/bin/phpize 如果出现:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then。。。 错误, yum install m4 yum install autoconf
时间: 2024-10-10 14:53:33