php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49829 ./configure --with-mysql=mysqlnd gave configure error
Submitted: 2009-10-10 02:12 UTC Modified: 2009-10-14 19:51 UTC
From: eddychu at yahoo dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.3.0 OS: CentOS 5.3
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: eddychu at yahoo dot com
New email:
PHP Version: OS:

 

 [2009-10-10 02:12 UTC] eddychu at yahoo dot com
Description:
------------
Followed http://us.php.net/manual/en/mysqlnd.install.php instructions to attempt to configure PHP to build with mysqlnd support, but it gave error:

configure: error: Cannot find MySQL header files under mysqlnd,.
Note that the MySQL client library is not bundled anymore!

although ext/mysqlnd folder is right there under php-5.3.0.  And no Makefile was generated so I can't build PHP.  Either the instructions are wrong or the configure scripts are wrong.

Reproduce code:
---------------
---
From manual page: mysqlnd.install
---
Simply try to configure with mysqlnd:

./configure --with-mysql=mysqlnd, --with-mysqli=mysqlnd and --with-pdo-mysql=mysqlnd

Expected result:
----------------
Expected ./configure --with-mysql=mysqlnd, --with-mysqli=mysqlnd and --with-pdo-mysql=mysqlnd to successfully generate the Makefile.  If other configure option(s) are required for these to work, they should be mentioned in the above manual page.

Actual result:
--------------
configure: error: Cannot find MySQL header files under mysqlnd,.
Note that the MySQL client library is not bundled anymore!

Can't proceed further.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-10 12:11 UTC] Sjoerd@php.net
Thank you for your bug report.

Have you installed the MySQL development files, from the mysql-devel package?
 [2009-10-12 13:01 UTC] uw@php.net
Works fine for me. Please make sure that configure is sane: 

rm configure ; ./buildconf --force ; ./configure  --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd

 [2009-10-12 19:56 UTC] srinatar@php.net
also, for these kind of configure errors, it is better if you provide with the corresponding error you noticed inside config.log file (created under the same location where you are trying to build).

as sjoerd suggested, you probably don't have mysql develop rpm installed on your system.
 [2009-10-14 19:47 UTC] eddychu at yahoo dot com
On my CentOS 5.3, after uninstalling MySQL-server-community 5.1.34 and MySQL-client-community 5.1.34 and install mysql-server 5.0.77 and mysql 5.0.77, it started to work.  Note that I don't need mysql-devel for this to work.
 [2009-10-14 19:51 UTC] uw@php.net
Thanks for getting back and closing. It is correct that with mysqlnd there should be no need to have any MySQL components installed on the PHP build host. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC