Bug #11811 mysql_config on windows points to wrong locations

Submitted: 8 Jul 2005 12:34 Modified: 12 Jul 2005 3:48
Reporter: Jan Kneschke Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.7 OS:Windows (windows)
Assigned to: CPU Architecture:Any

[8 Jul 2005 12:34] Jan Kneschke
Description:
mysql_config points to /usr/local/mysql/lib when asked for --libs. This happens for all options.

How to repeat:
Install a unix-shell on windows (e.g. mingw) and execute mysql_config --libs.

Suggested fix:
let the installer patch the directories to the correct, installed localtions
[8 Jul 2005 16:38] MySQL Verification Team
Are you tried to use?:

CFG=/path/mysql_config

and

sh -c "gcc -o progname `$CFG --cflags` progname.c `$CFG --libs`"
[11 Jul 2005 9:59] Jan Kneschke
No need to compile it, just do a 

$ /path/mysql_config --libs
-L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm

$ /path/mysql_config --cflags
-I/usr/local/include/mysql
[12 Jul 2005 3:47] Jorge del Conde
I was able to reproduce this behaviour using cygwin.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.