[nycbug-talk] Installing Perl Module: DBD::mysql
Kevin Reiter
KReiter at insidefsi.net
Wed Feb 14 15:39:46 EST 2007
All,
I'm trying to install the DBD::mysql Perl module (via the CPAN shell) on FreeBSD 6.2, and it's looking to login to the local MySQL database during the 'make test' portion of the install, resulting in a failed install:
Failed 23/26 test scripts, 11.54% okay. 414/419 subtests failed, 1.19% okay.
*** Error code 255
Stop in /root/.cpan/build/DBD-mysql-4.001.
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
I noticed that it's looking for a running database (it's running on localhost), but how do I pass the password to the command in order for it to successfully login?
cpan> install DBD::mysql
Running install for module DBD::mysql
Running make for C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz
Is already unwrapped into directory /root/.cpan/build/DBD-mysql-4.001
Has already been processed within this session
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.............ok
t/10dsnlist..........DBI connect('test','',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at t/10dsnlist.t line 45
Cannot connect: Access denied for user 'root'@'localhost' (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
Any help would be greatly appreciated.
Kev
Kevin Reiter
Senior Security Engineer
Financial Services, Inc.
21 Harristown Road
Glen Rock, New Jersey 07452
(201)652-6000, ext. 588
PGP ID: 0xEE665233
This message may contain confidential or proprietary information and is intended solely for the individual(s) to whom it is addressed. If you are not a named addressee you should not disseminate, distribute or copy this e-mail or act upon the information contained herein. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.
More information about the talk
mailing list