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