rhumbliner has asked for the wisdom of the Perl Monks concerning the following question:
after reading all of the posts here and elsewhere, and having no success, i decided that there must be some issue between how the mysql binary was compiled and how DBD::mysql was being compiled on my system. i happened upon Dan Benjamin's excellent howto for installing mysql from the source:dyld: lazy symbol binding failed: Symbol not found: _mysql_init
following his instructions very carefully and then re-installing DBD::mysql solved all of my problems.http://hivelogic.com/articles/view/installing-mysql-on-mac-os-x
i think part of my issue may have been that other software packages i've installed have required the environment variable:
and this may cause some inconsistencies that are solved by compiling the mysql source. as noted by the archflags i'm running an intel mac with leopard but i believe this solution works for earlier versions of os x.ARCHFLAGS="-arch i386 -arch x86_64"
the only problem with this approach is that i lose the preference pane that allows me to stop and start mysql thru the preference panel. it must be done manually on the command line. oh well, i'd rather be able to run my perl apps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::mysql on Mac OS X
by Anonymous Monk on May 10, 2009 at 13:09 UTC |