[Dbix-class] install problem

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Mon Jan 16 11:56:18 CET 2006


On Fri, 2006-01-13 at 18:10 +0000, Matt S Trout wrote:
> On Fri, Jan 13, 2006 at 05:15:01PM +0000, Dave Howorth wrote:
> > I'm just trying to install DBIx::Class v0.04001 but am seeing an install
> > test failure:
> > 
> > t/cdbi-t/01-columns................Can't infer join condition for state
> > on City; unable to load State
> > at /root/.cpan/build/DBIx-Class-0.04001/blib/lib/DBIx/Class/CDBICompat/HasA.pm line 23
> > # Looks like your test died before it could output anything.
> > t/cdbi-t/01-columns................dubious
> >         Test returned status 255 (wstat 65280, 0xff00)
> > DIED. FAILED tests 1-25
> >         Failed 25/25 tests, 0.00% okay
> 
> Very odd, I don't see that here. Could you see if you can confirm this against
> branches/DBIx-Class-resultset out of svn?

Sorry, I'm not sure how to do that. I tried it against your new
developer release with the same result:

t/cdbi-t/01-columns................Can't infer join condition for state
on City; unable to load State
at /root/.cpan/build/DBIx-Class-0.04999_02/blib/lib/DBIx/Class/CDBICompat/HasA.pm line 23
# Looks like your test died before it could output anything.
t/cdbi-t/01-columns................dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-24
        Failed 24/24 tests, 0.00% okay


I tried to run the test standalone:

cpepc210-3:~/.cpan/build/DBIx-Class-0.04999_02 # perl
t/cdbi-t/01-columns.t
1..24
Base class package "DBIx::Class::Test::SQLite" is empty.
    (Perhaps you need to 'use' the module which defines that package
first.)
 at t/cdbi-t/01-columns.t line 10
BEGIN failed--compilation aborted at t/cdbi-t/01-columns.t line 10.
# Looks like your test died before it could output anything.

Is there a magic incantation to run the tests?


> The redef. warnings are C3 and Class::Data::Inheritable not playing nice
> together; having abjectly failed to get Tony to accept a patch for C::D::I
> the latest version moves to Class::Data::Accessor which handles it fine.

The redef warnings have gone :)

FWIW, I also see this:

t/cdbi-t/15-accessor...............Too late to run INIT block
at /usr/lib/perl5/site_perl/5.8.6/Class/C3.pm line 52.
t/cdbi-t/15-accessor...............ok 6/53DBD::SQLite::db prepare
failed: no such column: sheep(1) at dbdimp.c line 268
at /root/.cpan/build/DBIx-Class-0.04999_02/blib/lib/DBIx/Class/Storage/DBI.pm line 296.
t/cdbi-t/15-accessor...............ok


and this:


t/cdbi-t/98-failure................ok 7/7closing dbh with active
statement handles
t/cdbi-t/98-failure................ok


Cheers, Dave




More information about the Dbix-class mailing list