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

Hello to all again. To anyone who has installed perl DBI: I'm currently having problems installing it. I'm using the command:
perl -MCPAN -e 'install Bundle::DBI'
Everytime, it fails asserting that when trying to run make install, 'make test had returned bad status, won't install without force.' It said that it failed tests. What could be causing this? Make also reports an Error 2 just before trying to run make install saing that: '/usr/bin/make test --NOT OK' How can I force DBI to install? I'm running on MacOS X 10.4.3 Tiger powerpc arch, perl version 5.8.6

Replies are listed 'Best First'.
Re: Problems installing perl DBI
by jZed (Prior) on Nov 01, 2005 at 16:35 UTC
    Run the tests manually and see which one fails, then send the failed test output to dbi-users@perl.org. To run the test manually, change into the CPAN directory (usually something like ~/.cpan/build/DBI-1.48) and run "make test".
Re: Problems installing perl DBI
by Fang (Pilgrim) on Nov 01, 2005 at 17:12 UTC

    It never hurts to ask, so have you installed the Developer Tools?

    I reran the test procedure on the same platform as you and everything went fine, so try installing the DBI module alone. The Bundle::DBI version installs a few other modules which might be the cause of your problem:

    *** Note:
        The optional PlRPC-modules (RPC::PlServer etc) are not installed.
        If you want to use the DBD::Proxy driver and DBI::ProxyServer
        modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
        Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
        You can install them any time after installing the DBI.
        You do *not* need these modules for typical DBI usage.
    

    And finally as jZed noted, check the full output of the install procedure. You should have gotten it when executing the command, but if for some reason you didn't, use the CPAN prompt (perl -MCPAN -e'shell')

      Ok, I successfully installed DBI on my MacMini and 15 inch PowerBook G4, so the problem is with some configuration on my PowerMac G4 MDD( the computer I'm having problems installing DBI on ). When CPAN asked me for the 'working' directory the first time I set it up on my PowerMac G4, I changed it to my desktop. I think this might be the problem.

        It might be the cause of the problem, though I doubt it. You can rerun the whole configuration process with the command o conf init at the CPAN prompt, and choose the default working directory (which should be ~/.cpan).

        (Oh and by the way, you can simply edit one of your message by clicking the link pointing to it)

      hmm... how do I install the DBI module alone? would it be:
      perl -MCPAN -e 'install DBI'
      Oh, and yes, I have the dev tools installed. I develope code in Xcode 2.1 often, using gcc 4.
Re: Problems installing perl DBI
by artist (Parson) on Nov 01, 2005 at 16:58 UTC
    Get CPAN prompt.
    Now, type "force install Bundle::DBI"
    --Artist