编译php5的MySQL的问题

 

php5时出现如上:

 checking for MySQL UNIX socket location... /tmp/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore. 

whereis mysql

mysql因为 为rpm包的

linux:~/php-5.1.6 # ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql-dir=/usr

ok 

 

 

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=printview&t=132761&start=15

你可能感兴趣的:(MySQL,mysql,php,library,header,socket,unix)