fawzi has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I am having trouble setting dbd-mysql on my MAC Book Pro MAC OSX 10.5.6... i spen a week on this already, so frustration level is thru the roof... :) hope you can help
when i try to connect to mysql database in a perl cgi script, i get an error:

dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from: /usr/local/lib/perl5/site_perl/5.10.0/darwin-2level/auto/DBD/mysql/mysql.bundle Expected in: dynamic lookup
dyld: Symbol not found: _mysql_init Referenced from: /usr/local/lib/perl5/site_perl/5.10.0/darwin-2level/auto/DBD/mysql/mysql.bundle Expected in: dynamic lookup

I am using xampp as a "lamp" server.
I have done a manual install of DBD::mysql since CPAN cannot install it... it returns some error.
Perl : version 5.10 at /usr/bin
DBI: version 1.607
DBD: version 4.010
mysql : version 14.12 dis 5.0.67 at /Applications/xampp/xamppfiles/bin//mysql ( the "//" is not a typo, i just noticed it.)

Replies are listed 'Best First'.
Re: DBD-mysql: dyld error
by Anonymous Monk on Mar 23, 2009 at 06:36 UTC
      annonymous Monk, thanks for your response and the handy links... yes i have googled till i dropped. Sadly for me, i have visited them all before and i have tried them all and much more. i have installed and reinstalled multiple versions of mysql, DBI and DBD in both architectures as well. so just for completeness sake i will go over them again. Frankly, i don't know the big picture of what i am trying to achieve, which makes me uncreative when i hit a problem do you even know what the error means? that might help me see the big picture and be more independent.