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$