php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46975 checking for mysql_config... not found
Submitted: 2008-12-30 19:10 UTC Modified: 2009-01-02 02:25 UTC
From: support at silverservers dot com Assigned: mysql (profile)
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.8 OS: CentOS 5.2
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: support at silverservers dot com
New email:
PHP Version: OS:

 

 [2008-12-30 19:10 UTC] support at silverservers dot com
Description:
------------
Configure PHP with pdo_mysql fails using --pdo_mysql=shared   
"checking for mysql_config... not found"

mysql_config exists and is "found" for other needs via --with-mysql=/usr/local/mysql

configure for pdo does not seem to follow this path. 

TEMPORARY FIX is to symlink:
ln -s /usr/local/mysql/bin/mysql_config /usr/bin/mysql_config

RESOLUTION:  Best would be for pdo_mysql option to follow the path specified in --with-mysql

ENVIRONMENT:
CentOS 5.2 - source-compiled MySQL5.0.51/Apache1.3.41/PHP5.2.8





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-01 10:35 UTC] jani@php.net
Doesn't this work:

--with-pdo-mysql=shared,/usr/local/mysql


 [2009-01-01 17:57 UTC] support at silverservers dot com
I just tried that and yes, the config seems to have run successfully.
I must have spent an hour trying to find the right way to do this... I've read postings that suggest others have the same issue.

If the --with-mysql=/usr/local/mysql cannot be followed, can someone post the --with-pdo-mysql=shared,/usr/local/mysql to the configure and install instructions?
 [2009-01-02 02:25 UTC] johannes@php.net
This is a geneal thing, MySQL and PDO independent. From ./configure --help:

Extensions:

  --with-EXTENSION=shared[,PATH]

    NOTE: Not all extensions can be build as 'shared'.

    Example: --with-foobar=shared,/usr/local/foobar/

      o Builds the foobar extension as shared extension.
      o foobar package install prefix is /usr/local/foobar/

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 28 10:01:29 2024 UTC