Bug #1896 mysql_config not in sync with install locations
Submitted: 19 Nov 2003 21:49 Modified: 12 Dec 2003 17:03
Reporter: Sam Umbach Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.0.15 Standard OS:MacOS (mac os x 10.2.8)
Assigned to: Lenz Grimmer CPU Architecture:Any

[19 Nov 2003 21:49] Sam Umbach
Description:
Output from mysql_config:

Usage: /usr/local/bin/mysql_config [OPTIONS]
Options:
        --cflags         [-I'/usr/local/mysql/include/mysql']
        --libs           [-L'/usr/local/mysql/lib/mysql' -lmysqlclient -lz -lm]
        --socket         [/tmp/mysql.sock]
        --port           [3306]
        --version        [4.0.15]
        --libmysqld-libs [ -L'/usr/local/mysql/lib/mysql' -lmysqld -lz -lm   ]

The Mac OS X image installer (mysql-standard-4.0.15.pkg) places all the mysql files 
under /usr/local/mysql.

The output from mysql_config should express this, for example, --cflags should output "/
usr/local/mysql/include" rather than "/usr/local/mysql/include/mysql".

How to repeat:
Install Mysql 4.0.15 standard on Mac OS X; run mysql_config at the command line.

Suggested fix:
This is probably just a simple mistake made when building and packaging this binary, 
but it breaks building other things which depend on Mysql (in my case, DBD::mysql).

Rebuild the package making sure that mysql_config generates output which is in sync 
with the actual install locations.
[12 Dec 2003 17:03] Lenz Grimmer
Sorry, but I cannot reproduce the problem here. I installed MySQL from mysql-standard-4.0.15.pkg and ran mysql_config:

$ /usr/local/mysql/bin/mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
        --cflags         [-I'/usr/local/mysql/include']
        --libs           [-L'/usr/local/mysql/lib' -lmysqlclient -lz -lm]
        --socket         [/tmp/mysql.sock]
        --port           [3306]
        --version        [4.0.15]
        --libmysqld-libs [ -L'/usr/local/mysql/lib' -lmysqld -lz -lm   ]

Can you please verify, that there is no other MySQL installation in /usr/local?
Does it still happen for you with the 4.0.16 package?