php5+pdo_mysql安装问题

php5+pdo_mysql安装问题

系统:linux
数据库版本:mysql-5.0.45-linux-i686
php版本:php-5.2.4
pdo_mysql版本: PDO_MYSQL-1.0.1
我用SecureCRT登陆linux服务器,登陆后-su成root
安装pdo_mysql步骤
shell>cd /home/tools
shell>tar zxvf PDO_MYSQL-1.0.1.tar.gz
shell>cd PDO_MYSQL-1.0.1
shell>phpize
bash: phpize: command not found
shell>/usr/local/php5/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
shell>./configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH

shell>./configure --with-php-config=/usr/local/php5/bin/php-config
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/php5
checking for PHP includes... -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php5/lib/php/extensions/no-debug-zts-20060613
checking for PHP installed headers prefix... /usr/local/php5/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for MySQL support for PDO... yes, shared
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_query in -lmysqlclient... no
configure: error: mysql_query missing!?

这我就不知道怎么办了,这两天一直捣腾这东西了.耽误了好久.
在网上搜索了好多可千篇一律,总说什么版本问题,但我不知道怎么才能对应版本安装啊,我也试过PDO_MYSQL-1.0.2一样是这个错误,请高人帮帮忙指点一下吧,有关小弟生死存亡啊.谢谢啦
急急急急急急急急急急急急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[ 本帖最后由 halou 于 2008-1-10 15:45 编辑 ]