Error compiling PHP with native MySql
| From: | Richard Fox | Date: | Thu, 21 Mar 2002 16:29:17 +0000 |
| Subject: | Error compiling PHP with native MySql | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89529@lists.php.net to get a copy of this message | ||
When I try to configure PHP 4.1.1 I get the following error:
checking whether to include ming support... no
checking for mnoGoSearch support... yes
checking for mnoGoSearch version... 3.1.19
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... yes
configure: error: Cannot find header files under /usr/include/mysql
The command line I'm using to configure:
./configure --with-mysql=/usr/include/mysql --with-java=/usr/java/j2sdk1.4.0
--w
ith-xml --enable-shared-pdflib --enable-track-vars --with-db --with-gdbm --w
ith-
gd --enable-ftp --disable-debug --enable-memory-limit=yes --enable-trans-sid
--w
ith-apxs=/usr/local/apache/bin/apxs --with-mnogosearch=/usr/local/mnogosearc
h
I am on RedHat 7.1 with the following MySql RPMs installed:
MySQL-devel-3.23.49-1
MySQL-client-3.23.49-1
MySQL-3.23.49-1
To check where the RPM installed the MySQL header files, I looked and found
that they are in /usr/include/mysql
[root@centauri local]# find / -name mysql -print
/home/rfox/download/mnogosearch-3.1.19/create/mysql
/usr/share/mysql
/usr/bin/mysql
/usr/lib/mysql
/usr/include/mysql
/usr/download/php-4.1.1/ext/mysql
/usr/download/php-4.1.1/pear/DB/tests/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/var/lib/mysql-/mysql
/var/lock/subsys/mysql
/etc/rc.d/init.d/mysql
/etc/logrotate.d/mysql
So, I do not understand this error at all! Can anyone help?
Thanks
Rich