Incorrect path to libmysqlclient.15.dylib on Mac OS X binary package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OurDelta |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using the binary package you have kindly provided for Mac OS X, here:
http://
Every time I've installed it afresh on a new system, when I try and use MySQL, I get the following error:
$ mysql -uroot
dyld: Library not loaded: /usr/local/
Referenced from: /usr/local/
Reason: image not found
Trace/BPT trap
I've been solving the problem with the following:
cd /usr/local/
which is fine an' all, but I thought I should share in case it's stumping anyone else. Might be worth respinning the dmg to contain that symlink, or maybe there's a proper way to fix it. ;-)
Cheers,
Graeme.
This is an upstream bug (exists in recent MySQL source builds as well).
It's also referenced in this old report http:// bugs.mysql. com/bug. php?id= 29580 and many blog posts.
Another workaround is to change the library name in the object file, as described here, for example: http:// stackoverflow. com/questions/ 517976/ how-to- fix-dlopen- library- ruby-gems- 1-8-gems- mysql-2- 7-lib-mysql- bundle- 9-li