PHP compile error: Cannot find mysql header files

From: Date: Mon, 11 Oct 2004 01:49:29 +0000
Subject: PHP compile error: Cannot find mysql header files
Groups: php.db 
Request: Send a blank email to php-db+get-36712@lists.php.net to get a copy of this message
Hi all, I'm attempting to configure PHP with apache and mysql support, but the config fails, because it can't find the mysql header files. I have mysql installed and working, these are the rpms installed: MySQL-client-4.0.21-0 MySQL-server-4.0.21-0 MySQL-shared-compat-4.0.21-0 When configuring PHP, I'm using this: [root@tunes mysql]# ./configure --with-apache=../apache_1.3.31 --with-mysql=/usr/bin/mysql This is the Error: configure: error: Cannot find MySQL header files under /usr/bin/mysql When I search for mysql.h, I get this: [andy@tunes local]$ locate mysql.h /home/andy/snort/snort-2.2.0/src/win32/WIN32-Includes/mysql/mysql.h /usr/local/src/php-4.3.9/ext/dbx/dbx_mysql.h /usr/local/src/php-4.3.9/ext/mysql/php_mysql.h /usr/local/src/php-4.3.9/ext/mysql/libmysql/mysql.h /var/www/html/php_tarball/php-4.3.9/ext/dbx/dbx_mysql.h /var/www/html/php_tarball/php-4.3.9/ext/mysql/php_mysql.h /var/www/html/php_tarball/php-4.3.9/ext/mysql/libmysql/mysql.h correct me if I'm wrong, but shouldn't the path be something like /usr/bin/mysql or /usr/lib/mysql or /usr/sbin/mysql ? I've tried all of these paths and they don't work. anything to help is greatly appreciated. Thanks, HC

« previous php.db (#36712) next »