in reply to Re: DBomb Installation Problem
in thread DBomb Installation Problem

Great ! That seems to have done a cleaner install, though I'm not sure -- here's the message that I got back
CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 11 Dec 2006 11:25:15 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname ' +ftp.perl.org'] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/authors/01mailrc.txt.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Tue, 19 Dec 2006 10:25:22 GMT There's a new CPAN.pm version (v1.8802) available! [Current version is v1.7601] You might want to try install Bundle::CPAN reload cpan without quitting the current session. It should be a seamless upgrad +e while we are running... Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz Going to read /root/.cpan/sources/modules/03modlist.data.gz Going to write /root/.cpan/Metadata DBomb is up to date. How do I tell if its a clean install? Unfortunately the error that I g +ot is related to a perl call in MovableType that works on one server, + but not this new one. By the way the error i'm getting is Can't use an undefined value as an ARRAY reference at lib/MT/App/CMS.p +m line 1175. http://perlmonks.org/?node_id=590816 http://groups.google.com/group/comp.lang.perl.modules/browse_thread/th +read/6aef89c55d28b50e/ba56a96463b964f4#ba56a96463b964f4 there's code that's working fine on the media temple server but is dyi +ng completely on 236 the way you can see the error is by: http://www.twentythreesix.com/MT/mt.cgi log in as paul / thesite you get back this error message: Can't use an undefined value as an ARRAY reference at lib/MT/App/CMS.p +m line 1174. i researched and it looks like we need to have DBomb perl module insta +lled, and as usual with perl, it needed about 5 other modules in orde +r to install i'm attaching my notes from that installation process, all but DBomb i +tself installed succusefully, though there were a couple notes that i + made in there of things that looked a little bit odd the code that MT dies on is this: use huff::WelcomeMessage; my $driver = MT::Entry->driver; my $dbh = $driver->{dbh}; my $query = "SELECT Name from NGBlogWelcome"; my $welcome = pop(@{$dbh->selectcol_arrayref($query)}); **THIS I +S LINE 1174** $param{welcome} = $welcome; my $query = "SELECT Comment from NGBlogWelcome"; my $welcome = pop(@{$dbh->selectcol_arrayref($query)}); $param{welcomemessage} = $welcome; $app->build_page('list_blog.tmpl', \%param); huff:WelcomeMessage is a .pm file located here: MT/extlib/huff/WelcomeMessage.pm which contains this code: package huff::WelcomeMessage; use strict; use MT::Object; @huff::WelcomeMessage::ISA = qw( MT::Object ); __PACKAGE__->install_properties({ column_defs => { 'id' => 'integer not auto_increment', 'name' => 'varchar(60)', 'comment' => 'text', 'creation_date' => 'datetime' }, indexes => { id => 1, entry_id => 1, zone => 1, }, defaults => { name => 'welcome title', comment => 'welcome body', }, audit => 1, datasource => 'welcomemessage', primary_key => 'id', }); 1;
Many many thanks for any ideas on this one Best regards Paul (i guess there are a lot of us out there, i wonder how

Replies are listed 'Best First'.
Re^3: DBomb Installation Problem
by jettero (Monsignor) on Dec 20, 2006 at 02:56 UTC

    See, at this point I'd assume something went wrong with the previous install and choose perl -MCPAN -e shell; when you get the prompt, issue a "force install DBomb." If it doesn't fix the problem it may lead you in the right direction. I'm guessing it's a missed dependency.

    -Paul

      Thanks -- I think this hopefully leading me in the right direction. I tried the force install DBomb from the MCPAN -e shell.

      It returned a bunch of errors, but none of which I can interpret into an action point, what do you think? The whole thing was a ton of lines, so I'm not going to paste them all but the first group of errors are here:

      Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-use................ # Failed test 'use DBomb;' # at t/00-use.t line 11. t/00-use................NOK 1# Tried to use 'DBomb'. + # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/00-use.t line 11. # Compilation failed in require at (eval 4) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. t/00-use................ok 2/30 + # Failed test 'use DBomb::Base;' # at t/00-use.t line 13. # Tried to use 'DBomb::Base'. # Error: Can't locate object method "mk_classdata" via package "D +Bomb::Base::Private" at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/B +ase/Private.pm line 32. # Compilation failed in require at (eval 10) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at t/00-use.t line 13. # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. t/00-use................ok 30/30# Looks like you failed 2 tests of 30. + t/00-use................dubious + Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1, 3 Failed 2/30 tests, 93.33% okay t/01-create_queries.....ok + t/02-create_database....ok 1/99 + # Failed test 'use DBomb;' # at t/02-create_database.t line 184. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/02-create_database.t line 184 +. # Compilation failed in require at (eval 7) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. t/02-create_database....ok 3/99"my" variable @binds masks earlier decl +aration in same scope at t/02-create_database.t line 226. Can't connect to data source , no database driver specified and DBI_DS +N env var not set at t/02-create_database.t line 190 # Looks like you planned 99 tests but only ran 3. # Looks like you failed 1 test of 3 run. # Looks like your test died just after 3. t/02-create_database....dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 4-99 Failed 97/99 tests, 2.02% okay t/03-execute_queries....ok 1/57 + # Failed test 'use DBomb;' # at t/03-execute_queries.t line 9. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/03-execute_queries.t line 9. # Compilation failed in require at (eval 7) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. t/03-execute_queries....ok 5/57Can't connect to data source , no datab +ase driver specified and DBI_DSN env var not set at t/03-execute_quer +ies.t line 17 # Looks like you planned 57 tests but only ran 5. # Looks like you failed 1 test of 5 run. # Looks like your test died just after 5. t/03-execute_queries....dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 6-57 Failed 53/57 tests, 7.02% okay t/04-object-select......ok 1/42 + # Failed test 'use DBomb;' # at t/04-object-select.t line 11. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/04-object-select.t line 11. # Compilation failed in require at (eval 8) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. t/04-object-select......ok 5/42Can't locate object method "mk_classdat +a" via package "DBomb::Base::Private" at /root/.cpan/build/DBomb-0.20 +/blib/lib/DBomb/Base/Private.pm line 32. Compilation failed in require at (eval 16) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/blib +/lib/DBomb/Base.pm line 23. Compilation failed in require at (eval 13) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at t/04-object-select.t line 30. # Looks like you planned 42 tests but only ran 5. # Looks like you failed 1 test of 5 run. # Looks like your test died just after 5. t/04-object-select......dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 6-42 Failed 38/42 tests, 9.52% okay t/05-object-update......ok 1/22 + # Failed test 'use DBomb;' # at t/05-object-update.t line 11. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/05-object-update.t line 11. # Compilation failed in require at (eval 8) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. t/05-object-update......ok 6/22Can't locate object method "mk_classdat +a" via package "DBomb::Base::Private" at /root/.cpan/build/DBomb-0.20 +/blib/lib/DBomb/Base/Private.pm line 32. Compilation failed in require at (eval 17) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/blib +/lib/DBomb/Base.pm line 23. Compilation failed in require at (eval 14) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at t/05-object-update.t line 31. # Looks like you planned 22 tests but only ran 6. # Looks like you failed 1 test of 6 run. # Looks like your test died just after 6. t/05-object-update......dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 7-22 Failed 17/22 tests, 22.73% okay t/06-object-insert......ok 1/33 + # Failed test 'use DBomb;' # at t/06-object-insert.t line 11. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/06-object-insert.t line 11. # Compilation failed in require at (eval 8) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. t/06-object-insert......ok 7/33Can't locate object method "mk_classdat +a" via package "DBomb::Base::Private" at /root/.cpan/build/DBomb-0.20 +/blib/lib/DBomb/Base/Private.pm line 32. Compilation failed in require at (eval 18) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/blib +/lib/DBomb/Base.pm line 23. Compilation failed in require at (eval 15) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at t/06-object-insert.t line 33. # Looks like you planned 33 tests but only ran 7. # Looks like you failed 1 test of 7 run. # Looks like your test died just after 7. t/06-object-insert......dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 8-33 Failed 27/33 tests, 18.18% okay t/07-string-mangle......ok 1/15 + # Failed test 'use DBomb;' # at t/07-string-mangle.t line 9. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/07-string-mangle.t line 9. # Compilation failed in require at (eval 7) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. t/07-string-mangle......ok 5/15Can't locate object method "mk_classdat +a" via package "DBomb::Base::Private" at /root/.cpan/build/DBomb-0.20 +/blib/lib/DBomb/Base/Private.pm line 32. Compilation failed in require at (eval 15) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/blib +/lib/DBomb/Base.pm line 23. Compilation failed in require at (eval 12) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at t/07-string-mangle.t line 26. # Looks like you planned 15 tests but only ran 5. # Looks like you failed 1 test of 5 run. # Looks like your test died just after 5. t/07-string-mangle......dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 6-15 Failed 11/15 tests, 26.67% okay t/08-select-expr........ok 1/11 + # Failed test 'use DBomb;' # at t/08-select-expr.t line 9. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/08-select-expr.t line 9. # Compilation failed in require at (eval 7) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. t/08-select-expr........ok 5/11Can't locate object method "mk_classdat +a" via package "DBomb::Base::Private" at /root/.cpan/build/DBomb-0.20 +/blib/lib/DBomb/Base/Private.pm line 32. Compilation failed in require at (eval 15) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/blib +/lib/DBomb/Base.pm line 23. Compilation failed in require at (eval 12) line 3. ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. BEGIN failed--compilation aborted at t/08-select-expr.t line 27. # Looks like you planned 11 tests but only ran 5. # Looks like you failed 1 test of 5 run. # Looks like your test died just after 5. t/08-select-expr........dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 6-11 Failed 7/11 tests, 36.36% okay t/09-delete.............ok 1/27 + # Failed test 'use DBomb;' # at t/09-delete.t line 9. # Tried to use 'DBomb'. # Error: Base class package "Class::Data::Inheritable" is empty. # (Perhaps you need to 'use' the module which defines that package + first.) # at /root/.cpan/build/DBomb-0.20/blib/lib/DBomb/DBH/Owner.pm line 14 # BEGIN failed--compilation aborted at t/09-delete.t line 9. # Compilation failed in require at (eval 7) line 3. # ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85. # BEGIN failed--compilation aborted at /root/.cpan/build/DBomb-0.20/bl +ib/lib/DBomb.pm line 15. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. t/09-delete.............ok 5/27Can't connect to data source , no datab +ase driver specified and DBI_DSN env var not set at t/09-delete.t lin +e 17 # Looks like you planned 27 tests but only ran 5. # Looks like you failed 1 test of 5 run. # Looks like your test died just after 5. t/09-delete.............dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2, 6-27 Failed 23/27 tests, 14.81% okay
        # Error: Base class package "Class::Data::Inheritable" is empty.

        I think I saw this error message in your first post. The first thing to do is to attend to it ... ie do whatever is necessary to eliminate it.

        Someone else mentioned that you might need to install Class::Data::Inheritable (even though it's not specified as a pre-requisite, afaict). Have you done that ?

        Cheers,
        Rob

        The first error Base class package "Class::Data::Inheritable" is empty. means that you didn't install Class::Data::Inheritable. All other errors seem to be related to this. So first make sure that you have Class::Data::Inheritable installed, best through CPAN via the cpan program or through perl -MCPAN -e 'install "Class::Data::Inheritable"' or through perl -MCPAN -eshell and then install Class::Data::Inheritable