PaulBerry has asked for the wisdom of the Perl Monks concerning the following question:

I've been trying to install DBomb on a new server and have run into some problems. I installed all the pre-required modules and they went for the most part without any trouble.

When I run the make on Dbomb though, it runs into a gazillion errors. to save everyone from a posting with so many lines, I thought that I would take the first error that happened and maybe someone could see what was going wrong from that?

# Failed test 'use DBomb;' # at t/00-use.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 /usr/lib/perl5/5.8.5/DBomb/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.


Is that enough information to find out what's going on or point me in the right direction?

Many many thanks
Paul

Replies are listed 'Best First'.
Re: DBomb Installation Problem
by jettero (Monsignor) on Dec 19, 2006 at 22:50 UTC
    Do you usually cd into usr/lib/perl5/.../, download the module, and install it by hand? Is that in fact what you did here? I highly recommend perl -MCPAN -e 'install DBomb' if that's the case.

    Also, DBomb looks really neat. I need to remember to try that out...

    -Paul (also)

      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

        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