Incorrect path to libmysqlclient.15.dylib on Mac OS X binary package

Bug #790143 reported by Graeme Mathieson
6
This bug affects 1 person
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://mirror.ourdelta.org/bin/mysql.10-ourdelta-sail-5.0.86-osx10.5-x86-oqgraph.dmg

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/mysql/lib/mysql/libmysqlclient.15.dylib
  Referenced from: /usr/local/mysql/bin/mysql
  Reason: image not found
Trace/BPT trap

I've been solving the problem with the following:

    cd /usr/local/mysql/lib && ln -s . mysql

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.

Revision history for this message
Toby Thain (qu1j0t3) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.