Skip Menu |

This queue is for tickets about the Test-Database CPAN distribution.

Report information
The Basics
Id: 64528
Status: resolved
Priority: 0/
Queue: Test-Database

People
Owner: Nobody in particular
Requestors: LGODDARD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.11
Fixed in: 1.111



Subject: Install fails to generate config
I ran 'cpan Test::Database' but then get nothing from: die Dumper ( Test::Database->handles( { dbd => 'mysql' } ) ); No config file appears in ~/.test-database. I also tried downloading and running perl Makefile.PL && make test && make install, but that didn't help. This looks like a really very useful module, but how to get it working...? Thanks Lee Lee-Goddards-MacBook-Pro:Form-Sensible-Reflector leegoddard$ perl -MTest::Database -le 'print for Test::Database->list_drivers("available")' DBM SQLite mysql Lee-Goddards-MacBook-Pro:Form-Sensible-Reflector leegoddard$ perl -V Summary of my perl5 (revision 5 version 8 subversion 9) configuration: Platform: osname=darwin, osvers=10.4.0, archname=darwin-2level uname='darwin lee-goddards-macbook-pro.local 10.4.0 darwin kernel version 10.4.0: fri apr 23 18:28:53 pdt 2010; root:xnu-1504.7.4~1release_i386 i386 ' config_args='-des -D prefix=/opt/local -D scriptdir=/opt/local/bin -D cppflags=-I/opt/local/include -D ccflags=-pipe -O2 -arch x86_64 -D ldflags=-L/opt/local/lib -arch x86_64 -D vendorprefix=/opt/local -D man1ext=1pm -D man3ext=3pm -D cc=/usr/bin/gcc-4.2 -D ld=/usr/bin/gcc-4.2 -D man1dir=/opt/local/share/man/man1p -D man3dir=/opt/local/share/man/man3p -D siteman1dir=/opt/local/share/man/man1 -D siteman3dir=/opt/local/share/man/man3 -D vendorman1dir=/opt/local/share/man/man1 -D vendorman3dir=/opt/local/share/man/man3 -D inc_version_list=5.8.8 5.8.8/darwin-2level -U i_bind -U i_gdbm -U i_db' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='/usr/bin/gcc-4.2', ccflags ='-pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include', optimize='-O3', cppflags='-I/opt/local/include -no-cpp-precomp -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5664)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.2', ldflags ='-L/opt/local/lib -arch x86_64 -L/usr/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-L/opt/local/lib -arch x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_FAST_STDIO USE_LARGE_FILES USE_PERLIO Built under darwin Compiled at Nov 3 2010 08:20:36 @INC: /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl /opt/local/lib/perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 . Lee-Goddards-MacBook-Pro:Form-Sensible-Reflector leegoddard$
Subject: Re: [rt.cpan.org #64528] Install fails to generate config
Date: Wed, 9 Feb 2011 09:23:45 +0100
To: Lee Goddard via RT <bug-Test-Database [...] rt.cpan.org>
From: "Philippe Bruhat (BooK)" <book [...] cpan.org>
On Thu, Jan 06, 2011 at 05:33:08AM -0500, Lee Goddard via RT wrote: Show quoted text
> Thu Jan 06 05:32:58 2011: Request 64528 was acted upon. > Transaction: Ticket created by LGODDARD > Queue: Test-Database > Subject: Install fails to generate config > Broken in: 1.11 > Severity: Critical > Owner: Nobody > Requestors: LGODDARD@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=64528 > > > > I ran 'cpan Test::Database' but then get nothing from: > > die Dumper ( > Test::Database->handles( { dbd => 'mysql' } ) > ); > > No config file appears in ~/.test-database.
Actually, you have to create the config file. Long ago, I put that quote at the beginning of the module, which leads people to believe it describes what the module does. That was a bit stupid, and I'll change that in a future version. Show quoted text
> This looks like a really very useful module, but how to get it working...? >
See also Test::Database::Tutorial for more details. Please let me know how it is working for you. -- Philippe Bruhat (BooK) There are two sides to every cause. Do not join one until you know the other. (Moral from Groo The Wanderer #105 (Epic))