DBD::mysql bug in Mac OS X 10.3

DBD::mysql bug in Mac OS X 10.3

am 16.11.2003 05:02:01 von Matt Post

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

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org