php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #880 Missing file mysql.h in make step
Submitted: 1998-10-27 19:44 UTC Modified: 1998-11-02 10:38 UTC
From: tfussell at uwf dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.5 OS: Linux Red Hat 5.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tfussell at uwf dot edu
New email:
PHP Version: OS:

 

 [1998-10-27 19:44 UTC] tfussell at uwf dot edu
I downloaded your source for PHP version 3.0.5  I'm trying to get Apache to accept PHP as a module.  I downloaded Apache 1.3.3 and installed it with no problems.  I followed the following steps trying to install PHP version 3.0.5.  

cd /root/apache_1.3.3
./configure --prefix=/www
cd ../php-3.0.5
./configure --with-mysql --with-apache=../apache_1.3.3 --enable-track-vars
make

When the make step reaches the following code.

gcc -g -02 -02 -I. -I. -I../apache_1.3.3/src/include I../apache_1.3.3/src/os/unix -I/usr/local/include/mysql -c functions/mysql.c -o functions/mysql.o

I get this error message.

functions/mysql.c:67: mysql.h:No such file or directory 
make: ***[functions/mysql.o] Error 1

The install directory for mysql is /usr/local/mysql.  The installation of the binary of mysql placed the header files in /user/local/mysql/include.  I created a directory named /usr/local/mysql/include/mysql and copied all the header files there (including mysql.h) and reran the make with the same results.  So I looked in the /root/php-3.0.5/functions directory and noticed that there was a mysql.c but not a mysql.h so i copied the mysql.h file from /usr/local/mysql/include directory there and reran the make. It failed as well with the same error message.  It seems no matter what directory the file is located the make can not find it.  The version of mysql is 3.21.33c downloaded from the www.gina.net/mysql/ mirror site.


Any assistance will be greatly appreciated.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-02 10:38 UTC] rasmus
Use --with-mysql=/usr/local/mysql
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 17:01:32 2024 UTC