Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I'm not sure if it applies to everybody, but I had this problem because I use the MySQL packages provided by Fink, but had not upgraded Fink to Mac OS X 10.6.

As a result, all my Fink libraries, including mysqlclient.dylib are 32-bit only.

The /usr/bin/perl in Snow Leopard is 32-or-64 bit, but prefers 64 bit. By the time it's loaded, it's definitely 64 bit and all further (runtime) libraries linked in HAVE to be 64-bit.

My solution is twofold: firstly, upgrade Fink into 64-bit land by reinstalling from scratch, as per their instructions. Secondly, I've decided to use the official MySQL build rather than Fink's build.

That's the bottom-line, but here are some other useful tips:

  • otool -L will tell you what other libraries a bundle depends on.
  • file on an executable will tell you what architectures it's compiled for.
In this case:
$ otool -L blib/arch/auto/DBD/mysql/mysql.bundle blib/arch/auto/DBD/mysql/mysql.bundle: /sw/lib/mysql/libmysqlclient.15.dylib (compatibility version 1 +6.0.0, current version 16.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current ve +rsion 1.2.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, curre +nt version 124.1.1) $ file /sw/lib/mysql/libmysqlclient.15.dylib /sw/lib/mysql/libmysqlclient.15.dylib: Mach-O dynamically linked share +d library i386 $ file blib/arch/auto/DBD/mysql/mysql.bundle blib/arch/auto/DBD/mysql/mysql.bundle: Mach-O universal binary with 3 +architectures blib/arch/auto/DBD/mysql/mysql.bundle (for architecture x86_64): + Mach-O 64-bit bundle x86_64 blib/arch/auto/DBD/mysql/mysql.bundle (for architecture i386): Mach-O + bundle i386 blib/arch/auto/DBD/mysql/mysql.bundle (for architecture ppc7400): + Mach-O bundle ppc

In reply to Re: dyld: lazy symbol binding failed (was MAC OS 10.6 upgrade breaks DBD:mysql) by kyz
in thread dyld: lazy symbol binding failed (was MAC OS 10.6 upgrade breaks DBD:mysql) by finhagen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others meditating upon the Monastery: (5)
    As of 2015-07-02 04:56 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (27 votes), past polls