Problems with DBI and DBD::mysql (on Mac OS X 10.4, Intel)

Discussion in 'Perl Misc' started by Martin Kißner, Oct 1, 2006.

  1. Hello together,

    I have installed the modules DBI and DBD::mysql.
    When I try to connect to my MySQL database with this command:

    perl -e 'use DBI;use DBD::mysql;
    DBI->connect("DBI:mysql:databasename","username","password")'

    I get the following error:

    *** start error message ***
    dyld: lazy symbol binding failed: Symbol not found: _mysql_init
    Referenced from:
    /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
    Expected in: dynamic lookup

    dyld: Symbol not found: _mysql_init
    Referenced from:
    /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
    Expected in: dynamic lookup

    zsh: trace trap perl -e
    *** end error message ***

    This happens on my Intel Mac.
    On my old PPC Mac I can use DBD and DBI::mysql without any problems.

    I have been searching the web for the error message without success.
    I have no idea what this error means and what I could try to get this
    working.


    Any help will be appreciated.
    Greetings from Germany

    Martin

    --
    perl -e '$S=[[73,116,114,115,31,96],[108,109,114,102,99,112],
    [29,77,98,111,105,29],[100,93,95,103,97,110]];
    for(0..3){for$s(0..5){print(chr($S->[$_]->[$s]+$_+1))}}'
     
    Martin Kißner, Oct 1, 2006
    #1
    1. Advertising

  2. Martin Kißner

    Ben Morrow Guest

    Quoth Martin =?iso-8859-1?Q?Ki=DFner?= <>:
    > Hello together,
    >
    > I have installed the modules DBI and DBD::mysql.
    > When I try to connect to my MySQL database with this command:
    >
    > perl -e 'use DBI;use DBD::mysql;
    > DBI->connect("DBI:mysql:databasename","username","password")'
    >
    > I get the following error:
    >
    > *** start error message ***
    > dyld: lazy symbol binding failed: Symbol not found: _mysql_init
    > Referenced from:
    > /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
    > Expected in: dynamic lookup
    >
    > dyld: Symbol not found: _mysql_init
    > Referenced from:
    > /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
    > Expected in: dynamic lookup


    You almost certainly don't have the mysql client libraries installed
    correctly, or somehow you are picking up a different version from when
    you built DBD::mysql.

    Ben

    --
    I touch the fire and it freezes me, []
    I look into it and it's black.
    Why can't I feel? My skin should crack and peel---
    I want the fire back... Buffy, 'Once More With Feeling'
     
    Ben Morrow, Oct 1, 2006
    #2
    1. Advertising

  3. Ben Morrow wrote :
    >
    > You almost certainly don't have the mysql client libraries installed
    > correctly, or somehow you are picking up a different version from when
    > you built DBD::mysql.


    Okay, thank you for this information.
    But still I don't know, how I can fix this.
    I have read the installation instructions for DBI::mysql but I have to
    admit that I do not understand too much of it.

    Greetings
    Martin

    --
    perl -e '$S=[[73,116,114,115,31,96],[108,109,114,102,99,112],
    [29,77,98,111,105,29],[100,93,95,103,97,110]];
    for(0..3){for$s(0..5){print(chr($S->[$_]->[$s]+$_+1))}}'
     
    Martin Kißner, Oct 2, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Perle

    DBI/DBD for MySQL

    Michael Perle, Aug 5, 2006, in forum: Ruby
    Replies:
    3
    Views:
    115
    John Gabriele
    Aug 6, 2006
  2. Ven Pa
    Replies:
    0
    Views:
    94
    Ven Pa
    Sep 8, 2007
  3. Mike Solomon

    DBD::mysqlPP v DBD::mysql

    Mike Solomon, Feb 16, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    223
    James Willmore
    Feb 16, 2004
  4. Graham Drabble

    Accessing query time via DBI / DBD::MySQL

    Graham Drabble, Feb 14, 2006, in forum: Perl Misc
    Replies:
    2
    Views:
    106
    Graham Drabble
    Feb 14, 2006
  5. Jim Cochrane
    Replies:
    0
    Views:
    119
    Jim Cochrane
    Aug 25, 2007
Loading...

Share This Page