php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2139 unable to find mysql.h under /usr/include/mysql
Submitted: 1999-08-24 11:04 UTC Modified: 1999-08-25 12:13 UTC
From: seth at psy dot au dot dk Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0 Beta 2 OS: Linux 2.2.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: seth at psy dot au dot dk
New email:
PHP Version: OS:

 

 [1999-08-24 11:04 UTC] seth at psy dot au dot dk
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-25 12:13 UTC] sas at cvs dot php dot net
You need to specify the base directory, not the directory where the mysql.h file can be found.

E.g. if you installed MySQL in /usr, --with-mysql=/usr is the parameter you should pass to PHP
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC