List:MySQL and Perl« Previous MessageNext Message »
From:Matt Post Date:November 16 2003 5:02am
Subject:DBD::mysql bug in Mac OS X 10.3
View as plain text  
Hello,

I have a fresh install of Panther, and was unable to get DBD::mysql to 
compile straight through the CPAN module. I'm not really familiar with how 
linking is done, but I know what I did to fix the problem. The last stage 
of the compilation runs the command

mpost89 ~/.cpan/build/DBD-mysql-2.9003$ make
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/lib" /usr/bin/perl myld MACOSX_DEPLOYMENT_TARGET=10.3 cc  
-bundle -undefined dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o  -o 
blib/arch/auto/DBD/mysql/mysql.bundle   -L/usr/local/mysql/lib 
-lmysqlclient -lz -lm   
make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
mpost89 ~/.cpan/build/DBD-mysql-2.9003$ 

I was getting the error above. However, when I ran the compile command 
directly (not through the perl 'myld' script) everything compiled fine:

mpost89 ~/.cpan/build/DBD-mysql-2.9003$ MACOSX_DEPLOYMENT_TARGET=10.3 cc 
-bundle -undefined dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o -o 
blib/arch/auto/DBD/mysql/mysql.bundle -L/usr/local/mysql/lib -lmysqlclient 
-lz -lm
mpost89 ~/.cpan/build/DBD-mysql-2.9003$ 

I ran 'make install' and (apart from getting some strange permission 
problems in Panther), everything is now working fine.

Sorry if I've sent this to the wrong place. I'd send a fix but I'm not 
sure how to.

Thanks,
Matt Post
Thread
DBD::mysql bug in Mac OS X 10.3Matt Post16 Nov
  • Re: DBD::mysql bug in Mac OS X 10.3Rudy Lippan16 Nov
    • Re: DBD::mysql bug in Mac OS X 10.3Matt Post17 Nov