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

I just compiled perl 5.6.0 for my Cobalt RaQ2. Seems to have run ok. Tried to run one of my scripts that has a use DBI in it and got:
Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.0/mips-linux /usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/mips-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .) at
/home/sites/site3/web/index.cgi line 5.

So I ran CPAN and told it to install DBI. All seemed fine until the tests. Here's what it spat back:
Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/lo +cal/lib/pe rl5/5.6.0/mips-linux -I/usr/local/lib/perl5/5.6.0 -e 'use Test::Harnes +s qw(&runt ests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/basics............ok t/dbidrv............ok t/examp.............ok t/meta..............ok t/proxy.............skipped test on this platform t/shell.............ok 1/3Can't exec "resize": No such file or directo +ry at /usr /local/lib/perl5/site_perl/5.6.0/mips-linux/Term/ReadKey.pm line 305. Use of uninitialized value in pattern match (m//) at /usr/local/lib/pe +rl5/site_p erl/5.6.0/mips-linux/Term/ReadKey.pm line 306. Use of uninitialized value in pattern match (m//) at /usr/local/lib/pe +rl5/site_p erl/5.6.0/mips-linux/Term/ReadKey.pm line 306. Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COL +UMNS and L INES environment variables didn't work. The resize program didn't work +. at /usr/ local/lib/perl5/site_perl/5.6.0/mips-linux/Term/ReadKey.pm line 323. Compilation failed in require at /usr/local/lib/perl5/site_perl/5.6.0/ +Term/ReadL ine/Perl.pm line 58. t/shell.............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 2-3 Failed 2/3 tests, 33.33% okay t/subclass..........ok Failed Test Status Wstat Total Fail Failed List of failed ---------------------------------------------------------------------- +--------- t/shell.t 2 512 3 2 66.67% 2-3 1 test skipped. Failed 1/7 test scripts, 85.71% okay. 2/179 subtests failed, 98.88% ok +ay. make: *** [test_dynamic] Error 29 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
Any ideas?

Replies are listed 'Best First'.
Re: New install of 5.6
by perlmonkey (Hermit) on May 02, 2000 at 06:39 UTC
    Have you taken a look at ReadKey since that is what seems to be failing? Maybe you can try that code out, or see what it is trying to do. What is ReadKey doing with resize? I have not looked at ReadKey, so I cant help there.

    If all else fails, you can use brute force and skip the tests. This is not recommended, but I do it when I dont want to deal with resolving the details and the tests that I am worried about pass. So for your install it looks like you would not be able to use parts of the DBI::Shell module until you resolve the ReadKey issue, but everything else should work. To force the intall I think you can do: cpan>force install DBI but I am not sure that cpan will skip the tests. I usually just go to my .cpan/build/DBI-??? directory and type "make install"
Re: New install of 5.6
by cei (Monk) on May 02, 2000 at 07:06 UTC
    That seemed to work, and my script ran as it had before the upgrade. Thanks!