MYSQL client builds and OSX

There’s a problem getting the mysql client libraries for OSX working as they are. The dynamic loader has a problem loading the lib.

dyld: Library not loaded: libmysqlclient.18.dylib
  Referenced from: /Users/mungeduser/Desktop/work/cvs/media/client/test/_bin/Darwin.x86_64/test
  Reason: image not found
Trace/BPT trap

One solution is to modify the dynamic lib to

bash-3.2$ sudo install_name_tool -id /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s