How to install DBD::mysql at Macosx

How to install DBD::mysql at Macosx

am 11.06.2011 04:39:46 von tti

Dear Sirs,

I'm try to install mysql and perl at my computer.
with in the CPAN installation I got a error msg.
would you please tell me ha to fix....
Best regards,

Takaaki Komatsu

H/W: MacBookPro
S/W: Mac OSX 10.6.7
Perl:5.14.0
mysql:5.5.13.0 osx

cpan[1]> install DBD::mysql
Going to read '/Users/tti/.cpan/Metadata'
Database was generated on Fri, 10 Jun 2011 05:29:39 GMT
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.019.tar.gz
Checksum for /Users/tti/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql- 4.019.tar.gz ok
Scanning cache /Users/tti/.cpan/build for sizes
............................................................ .................DONE

CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.019.tar.gz



PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'tti' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'tti'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will use the following settings for compiling and testing:

cflags (mysql_config) = -I/usr/local/mysql/include -Os -g -fno-common -fno-strict-aliasing -arch i386
embedded (mysql_config) =
libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient -lpthread
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (guessed ) = tti

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Argument "6.57_05" isn't numeric in numeric ge (>=) at Makefile.PL line 350, line 138.
Checking if your kit is complete...
Looks good
Using DBI 1.616 (for perl 5.014000 on darwin-2level) installed in /usr/local/lib/perl5/site_perl/5.14.0/darwin-2level/auto/DBI /
Writing Makefile for DBD::mysql
Writing MYMETA.yml
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/local/lib/perl5/site_perl/5.14.0/darwin-2level/auto/D BI -I/usr/local/mysql/include -Os -g -fno-common -fno-strict-aliasing -arch i386 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-common -DPERL_DARWIN -nostdinc -B/Developer/SDKs/MacOSX10.6.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.6.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.6.sdk/usr/include -F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"4.019\" -DXS_VERSION=\"4.019\" "-I/usr/local/lib/perl5/5.14.0/darwin-2level/CORE" dbdimp.c
/usr/local/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.14.0/darwin-2level/auto/DBI /Driver.xst > mysql.xsi
/usr/local/bin/perl /usr/local/lib/perl5/5.14.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.14.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 242
Warning: duplicate function definition 'rows' detected in mysql.xs, line 749
cc -c -I/usr/local/lib/perl5/site_perl/5.14.0/darwin-2level/auto/D BI -I/usr/local/mysql/include -Os -g -fno-common -fno-strict-aliasing -arch i386 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-common -DPERL_DARWIN -nostdinc -B/Developer/SDKs/MacOSX10.6.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.6.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.6.sdk/usr/include -F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"4.019\" -DXS_VERSION=\"4.019\" "-I/usr/local/lib/perl5/5.14.0/darwin-2level/CORE" mysql.c
mysql.xs: In function 'XS_DBD__mysql__db_do':
mysql.xs:307: warning: format '%d' expects type 'int', but argument 4 has type 'struct SV *'
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/local/mysql/lib:/usr/lib" /usr/local/bin/perl myld env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.bundle \
-L/usr/local/mysql/lib -lmysqlclient -lpthread \

chmod 755 blib/arch/auto/DBD/mysql/mysql.bundle
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
Manifying blib/man3/DBD::mysql.3
Manifying blib/man3/DBD::mysql::INSTALL.3
Manifying blib/man3/Bundle::DBD::mysql.3
CAPTTOFU/DBD-mysql-4.019.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t .................. 1/6 Bailout called. Further testing stopped: Unable to load DBD::mysql

# Failed test 'use DBD::mysql;'
# at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error: Can't find 'boot_DBD__mysql' symbol in /Users/tti/.cpan/build/DBD-mysql-4.019-1COrQT/blib/arch/auto /DBD/mysql/mysql.bundle
# at (eval 7) line 2
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
CAPTTOFU/DBD-mysql-4.019.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports CAPTTOFU/DBD-mysql-4.019.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
CAPTTOFU/DBD-mysql-4.019.tar.gz : make_test NO

cpan[2]>


--
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