| Bug #30160 | Perl API - DBD::mysql tests not looking for shared library in right place | ||
|---|---|---|---|
| Submitted: | 31 Jul 2007 22:04 | Modified: | 1 Aug 2007 11:05 |
| Reporter: | Daniel Barker | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | Connectors: DBD::mysql ( Perl ) | Severity: | S2 (Serious) |
| Version: | 4.005 | OS: | MacOS (Intel) |
| Assigned to: | CPU Architecture: | Any | |
[31 Jul 2007 22:04]
Daniel Barker
[1 Aug 2007 7:28]
Sveta Smirnova
Thank you for the report. Please provide output of `which mysql_config` and `mysql_config` commands. Also there is packaging Bug #13450. Please indicate version of MySQL server you use and provide output of `find / -name libmysqlclient.15.dylib 2>/dev/null`.
[1 Aug 2007 10:49]
Daniel Barker
Dear Sveta Smirnova,
Thank you for your prompt reply. Here are the details you requested, plus a couple of others.
***
$ which mysql_config
/usr/local/mysql/bin/mysql_config
$ mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/mysql/include -Os -arch i386 -fno-common]
--include [-I/usr/local/mysql/include]
--libs [-L/usr/local/mysql/lib -lmysqlclient -lz -lm]
--libs_r [-L/usr/local/mysql/lib -lmysqlclient_r -lz -lm]
--socket [/tmp/mysql.sock]
--port [3306]
--version [5.0.45]
--libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lz -lm]
$ find / -name libmysqlclient.15.dylib 2>/dev/null
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient.15.dylib
$ mysql --version
mysql Ver 14.12 Distrib 5.0.45, for apple-darwin8.5.1 (i686) using readline 5.0
$ find / -name libmysqlclient.dylib 2>/dev/null
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient.dylib
$ ls -Flo /usr/local/
total 8
lrwxr-xr-x 1 root wheel - 25 Jul 31 19:30 mysql@ -> mysql-5.0.45-osx10.4-i686
drwxr-xr-x 19 root wheel - 646 Jul 4 18:54 mysql-5.0.45-osx10.4-i686/
$
***
Best regards,
Daniel
[1 Aug 2007 11:05]
Sveta Smirnova
Thakn you for the feedback. Your problem is duplicate of Bug #28544. Please wait next release. Workaround: "sudo ln -s /usr/local/mysql/lib/mysql /usr/local/mysql/lib".
[4 Sep 2007 11:38]
Jonathan Share
It seems the arguments to the workaround are in the wrong order "sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql" solved the issue for me
