ID:               49771
 Updated by:       [email protected]
 Reported By:      zshadow at gmail dot com
-Status:           Open
+Status:           Feedback
-Bug Type:         *Compile Issues
+Bug Type:         MySQL related
 Operating System: Linux / CentOS 5.3
 PHP Version:      5.3.0
 New Comment:

What if you use the correct path there? You're not supposed to pass the

include path to --with-mysql but the install _prefix_..


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

[2009-10-05 03:10:12] zshadow at gmail dot com

I have fixed it by manually editing the includes portion of the
Makefile. Although MYSQL_LIBS and MYSQL_INCLUDE still report the default
paths, Client API and Header is being listed as 5.1.39.

This is fine as I'm only using this installation as a testbed, but
still wondering there's a way to get it working without any manual
Makefile editing.

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

[2009-10-04 22:28:41] zshadow at gmail dot com

Description:
------------
I have two copies of MySQL installed, one is in a non standard
directory. When linking PHP against the non standard one, it sets the
MYSQL_LIBS and MYSQL_INCLUDE paths to their default values and not the
one specified in configure. I receive no errors when building, but when
running scripts on PHP I'll get errors messages that say "eaders and
client library minor version mismatch. Headers:50085 Library:50139
"

Reproduce code:
---------------
./configure --prefix=/serverdojo/php
--with-config-file-scan-dir=/test/php/php.d
--with-mysqli=/serverdojo/mysqld/bin/mysql_config --with-libdir=lib64
--enable-fastcgi --with-mysql-sock=/test/mysqld/mysql2.sock
--with-mysql=/test/mysqld/include/mysql --without-pear
--with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
--enable-gd-native-ttf --with-imap-ssl --with-gd=shared --enable-fpm
--with-mcrypt --with-zlib --enable-mbstring --disable-pdo
--disable-pgsql --with-curl --disable-debug --enable-pic --disable-rpath
--enable-inline-optimization --with-bz2 --with-zlib --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex
--with-mhash --enable-xslt --enable-zip --with-pcre-regex

Expected result:
----------------
MYSQL_LIBS should to be set to /test/mysqld/lib
MYSQL_INCLUDE should to be set to /test/mysqld/include/mysql



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


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

Reply via email to