[Pdx-pm] dyld error with DBD::mysql

Tom Keller kellert at ohsu.edu
Mon Mar 15 11:44:50 PDT 2010

Thanks for the good suggestions. There is a problem with word size incompatibility. But I reinstalled MySQL (dmg file for 64-bit intel)  to match my Perl (both are 64-bit now) and this did not fix the library problem when using CPAN to install DBD::mysql. I found a solution at http://bixsolutions.net/forum/thread-8.html Basically, just use cpan to get the module, then install "by hand" so you can give Makefile.PL<http://Makefile.PL> the test user and password for MySQL, and one other modification. It turned out to be necessary to run make (and make test) as root; at least on my system.

thanks again folks,
kellert at ohsu.edu<mailto:kellert at ohsu.edu>

On Mar 14, 2010, at 10:53 AM, Eric Wilhelm wrote:

# from Tom Keller
# on Friday 12 March 2010 14:59:

Have any of you seen this and figured out a workaround?
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
  Referenced from:

Searching for "Symbol not found: _mysql_init" seems to indicate that you
might have a 32 vs 64-bit issue.  Did you build DBD::mysql from a

If there's a .dylib next to that .bundle, or something you could run ldd
on to see the linkage?

The only thing that could save UNIX at this late date would be a new $30
shareware version that runs on an unexpanded Commodore 64.
--Don Lancaster (1991)
Pdx-pm-list mailing list
Pdx-pm-list at pm.org<mailto:Pdx-pm-list at pm.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/pdx-pm-list/attachments/20100315/c78349e1/attachment.html>

More information about the Pdx-pm-list mailing list