PHP 4.0 Bug #2139: unable to find mysql.h under /usr/include/mysql

From: Date: Tue, 24 Aug 1999 15:04:38 +0000
Subject: PHP 4.0 Bug #2139: unable to find mysql.h under /usr/include/mysql
Groups: php.dev 
Request: Send a blank email to php-dev+get-10155@lists.php.net to get a copy of this message
From: seth@psy.au.dk Operating system: Linux 2.2.5 PHP version: 4.0 Beta 2 PHP Bug Type: Installation problem Bug description: unable to find mysql.h under /usr/include/mysql 1. Run configure with this script: CFLAGS="-fPIC $RPM_OPT_FLAGS" LDFLAGS=-s ./configure --with-apxs=/usr/sbin/apxs --prefix=/usr --with-config-file-path=/etc/httpd --with-zlib --enable-safe-mode --enable-track-vars --with-sybase=/opt/sybase --disable-debug --with-mysql=/usr/include/mysql --enable-magic-quotes --enable-memory-limit (I also tried it with: --with-mysql and no path) 2. Get this error: checking for MySQL support... no configure: error: Invalid MySQL directory - unable to find mysql.h under /usr/in clude/mysql 3. Background info: Ran as root. bash 1.14.7 MySQL-3.22.23b # l -d /usr/include/mysql/ drwxr-xr-x 2 root root 1024 Jun 30 21:30 /usr/include/mysql/ # l /usr/include/mysql/mysql.h -rw-r--r-- 1 root root 7612 Jun 30 21:18 /usr/include/mysql/mysql.h 4. I can see that the configure script is testing for /usr/include/mysql/mysql.h but I do not see why it is failing. FWIW, I could use the same script with php 3.0.12 with no problem. And I can see from other bug reports that others have been able to compile in mysql. So I am perplexed about what is wrong.

« previous php.dev (#10155) next »