ID:               35107
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alex at whitewhale dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         PDO related
 Operating System: MacOS X 10.4.3
 PHP Version:      5CVS-2005-11-05 (snap)
 Assigned To:      wez
 New Comment:

What does it say in config.log? (if anything, don't paste the whole
file, only 5 last lines MAX!)



Previous Comments:
------------------------------------------------------------------------

[2005-11-05 22:59:07] alex at whitewhale dot net

Okay, tried the following with latest snapshot:

rm config.cache
./configure --with-apxs=/usr/sbin/apxs --prefix=/usr --with-
mysqli=/usr/local/mysql/bin/mysql_config --with-zlib --with-
pdo-mysql

It fails to run with:

checking for MySQL support for PDO... yes
checking for mysql_config... not found
configure: error: Cannot find MySQL header files under 

I have verified that /usr/local/mysql/bin/mysql_config is 
there and mysql.h is in /usr/local/mysql/include. This was a 
standard MySQL 5.0.15 install with the MacOS X installer.

If I use the same configure line without --with-pdo-mysql it 
finishes configure successfully.

------------------------------------------------------------------------

[2005-11-05 17:20:32] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

I just committed a fix; please try the next snapshot.

------------------------------------------------------------------------

[2005-11-05 16:38:52] [EMAIL PROTECTED]

Assigned to the PDO maintainer.

------------------------------------------------------------------------

[2005-11-05 12:39:07] [EMAIL PROTECTED]

So now we've found out that the problem isn't in ext/mysqli.
Try this configure line (with the usual "rm config.cache" and "make
clean", which are only needed if you're not using fresh sources
everytime)

# ./configure --disable-all --enable-pdo --with-pdo-mysql

------------------------------------------------------------------------

[2005-11-05 02:17:26] alex at whitewhale dot net

Actually, I ran "make clean" several times in trying to 
diagnose this. Also, as I said, I tried compiling a fresh 
snapshot this morning to no avail.

I was finally able to compile it with your suggested, 
stripped-down config line after both "rm config.cache" and 
"make clean" but the moment I tried it with my normal config 
line, it failed again with the original error.

Just to be clear, the following sequence does *not* work for 
me (on my Mac, it works on my Linux box):

rm config.cache
make clean
./configure --with-apxs=/usr/sbin/apxs --prefix=/usr --
enable-inline-optimization --with-libxml-dir=/sw --with-
mysqli=/usr/local/mysql/bin/mysql_config --with-gd --with-
jpeg-dir=/sw --with-png-dir=/sw --with-zlib-dir=/usr --with-
pdo-mysql --with-xmlrpc --with-mm=/usr/local --disable-debug 
--with-ldap --enable-soap
make

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35107

-- 
Edit this bug report at http://bugs.php.net/?id=35107&edit=1

Reply via email to