php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5762 Configuration of --with-mysql does not work, even when updated w/info f Rasmus
Submitted: 2000-07-24 20:26 UTC Modified: 2000-07-25 19:58 UTC
From: bughuntr at ctelcom dot net Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.1pl2 OS: RedHat 6.2
Private report: No CVE-ID: None
 [2000-07-24 20:26 UTC] bughuntr at ctelcom dot net
 --with-mysql configure problems.  Any combination of
--with-mysql=/usr
--with-mysql=/usr/local
--with-mysql=/usr/include
--with-mysql=/usr/include/mysql

  fails.  Rasmus replied it was adequately explained in the install file.  Perhaps their is an updated install file?  I looked:
-----------------------------------------

  I did not find this explained in the INSTALL file that came with the
4.0.1pl2 download.

  It says:
   For MySQL support, since newer versions of MySQL installs its various
   components under /usr/local, this is the default.  If you have
   changed the location you can specify it with: --with-mysql=/opt/local
   for example.  Otherwise just use: --with-mysql

  this does not indicate that you should use /usr only.  There is no
indication in that file that _both_ the library and header files need to
be found, and that is the path you should choose.

  The ./configure script puts out the following warning:
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| You chose to compile PHP with the built-in MySQL support.  If you  |
| are compiling a server module, and intend to use other server      |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0,         |
| mod_perl) you must add
 | --with-mysql=/path/to/mysql to your configure line.                |
....

 furthermore, when you follow the INSTALL FILE, (--with-mysql=/usr/local)
you get this error:
...
checking for MySQL support... yes
configure: error: Cannot find header files under /usr/local


  And, when you do what you said (--with-mysql=/usr), you get this error:
...
checking for MySQL support... yes
configure: error: Cannot find header files under /usr

  I get this same error messages with /usr/include, or /usr/include/mysql.
  I am reopening this bug with the information I have just provided.


On 23 Jul 2000, Bug Database wrote:
> ID: 5741
> Updated by: rasmus
> Reported By: bughuntr@ctelcom.net
> Status: Closed
> Bug Type: Installation problem
> Assigned To:
> Comments:
>
> ./configure --with-mysql=/usr
>
 > This is explained adequately in the INSTALL file.  It needs to find
 both header and library files, and since there are no library files
 anywhere under /usr/include, you have to provide the lowest-level path
 under which both the .a or .so and the .h files exist.  And in your case
that would be /usr
> 
> Full Bug description available at: http://bugs.php.net/?id=5741
> 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-25 19:58 UTC] rasmus@php.net
User error
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 03:00:01 2026 UTC