Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Problems with DBI and DBD::mysql (on Mac OS X 10.4, Intel)

Reply
Thread Tools

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

 
 
Martin Ki▀ner
Guest
Posts: n/a
 
      10-01-2006
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","pass word")'

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))}}'
 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      10-01-2006

Quoth Martin =?iso-8859-1?Q?Ki=DFner?= <(E-Mail Removed)>:
> 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","pass word")'
>
> 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, [(E-Mail Removed)]
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'
 
Reply With Quote
 
 
 
 
Martin Ki▀ner
Guest
Posts: n/a
 
      10-02-2006
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))}}'
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing DBI on Mac OS-X.3 Dan Perl Misc 1 04-27-2005 10:50 AM
DBI Mysql storing DBI:binary, trouble with character 26 Jerome Hauss Ruby 0 10-13-2004 03:04 PM
DBI and DBI::Oracle packages configuration ulloa Perl 1 07-22-2004 05:52 PM
DBI problem : How can I load quickly one huge table with DBI ??. Tim Haynes Perl Misc 3 09-13-2003 03:43 AM
Mason, DBI, and DBI::Pg Asby Perl Misc 0 07-24-2003 09:04 PM



Advertisments