Today, when you are making a connection to a mall, you need mpdo verification. Need to install pdo_mysql module, just start according to the installation of PHP expansion module According to this installation Zip,curl have succeeded, but install Pdo_mysql but not, in ./configure--with-php-config=/usr/local/php/bin/php-config is an error occurred. as follows
Checking for re2c ... no configure:WARNING:You would need re2c 0.13.4 or later if you want to regenerate PHP parsers. Checking for gawk ... gawk checking for MySQL support for PDO ... yes, gkfx checking for the location of libz ... no Checki ng for mysql_config ... not found configure:error:Unable to find your MySQL installation can't find MySQL
Finally found a solution:
This compiles:./configure--with-php-config=/usr/local/php/bin/php-config--with-pdo-mysql=/usr/local/mysql on it, Then follow this PHP expansion module to install
PHP compiled and installed from: http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=11526&highlight=php%C0%A9%D5%B9%C4% A3%bf%e9
Extension Module Compilation installation
/usr/local/php/bin/php-m
Enter the PHP source package directory/usr/local/src/php-5.4.36
CD ext/
Take Curl for example
/usr/local/php/bin/php-m |grep-i Curl
cd/curl/
Ls
/usr/local/php/bin/phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make
Make install
Ls/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/curl.so
/usr/local/php/bin/php-i |grep Extension_dir
Vim/usr/local/php/etc/php.ini
Extension=php_shmop.dll (The following information is added below the line)
Extension=curl.so
Save exit
: Nohl Cancel Highlight (Vim interface)
grep ' extension= '/usr/local/php/etc/php.ini (view modules for installation dynamics)
About the installation of PHP plugin Pdo_mysql