ID:               46219
 User updated by:  norbi dot nagy at gmail dot com
 Reported By:      norbi dot nagy at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         *Compile Issues
 Operating System: Linux 2.6.18-6-amd64
 PHP Version:      5.2.6
 New Comment:

The /usr/local/mysql51/bin/mysql_config is exists.

The output:
checking for MySQL support for PDO... yes
checking for mysql_config... /usr/local/mysql51//bin/mysql_config
checking for mysql_query in -lmysqlclient... yes
checking for mysql_commit... yes
checking for mysql_stmt_prepare... yes
checking for mysql_next_result... yes
checking for mysql_sqlstate... yes
checking for PDO includes... checking for PDO includes...
/work/source3/php-5.2.6/ext

I have a mysql 5.0.51a in /usr/local/mysql. When I run php -i from
command line, I get this version for PDO_MYSQL. When I delete the
/usr/local/mysql symlink, the PHP uses the correct PDO version from
/usr/local/mysql51.
The configure output is the same in both cases.


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

[2008-10-02 15:28:35] [EMAIL PROTECTED]

Does /usr/local/mysql51/bin/mysql_config exist? What's the output of
configure (The relevant part is starting with "checking for MySQL
support for PDO...")?

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

[2008-10-02 14:03:51] norbi dot nagy at gmail dot com

Description:
------------
The configure script ignores the path in --with-pdo-mysql option.

Reproduce code:
---------------
My configure line:
./configure --with-apache=../apache_1.3.41 --with-libdir=lib64
--with-mysql-dir=/usr/local/mysql51 --with-pdo-mysql=/usr/local/mysql51
--with-curl --with-curlwrappers --with-zlib --enable-ftp
--enable-mbstring=all --with-iconv --with-freetype --with-gd --with-png
--with-jpeg --with-openssl --with-libexpat --with-xsl --enable-xslt
--with-xslt-sablot --with-sablot-js --with-mcrypt

Expected result:
----------------
The configure script uses the /usr/local/mysql51 path for pdo-mysql
extension.

Actual result:
--------------
The configure script uses the /usr/local/mysql (this is a symlink to a
mysql 5.0 installation) path instead of the configured one. When I
delete this symlink, the configure script uses the correct configured
path.
I tried the --with-mysql option instead of --with-mysql-dir, but the
result was the same.


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


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

Reply via email to