Re: [Perlunit-devel] question of installing PerlUnit
Status: Beta
Brought to you by:
mca1001
From: Adam S. <ad...@sp...> - 2002-07-19 13:56:48
|
Cindy Chen (ci...@re...) wrote: > Hi, > > I'm trying to install PerlUnit. (Please send installation-related queries to perlunit-users in future. Thanks.) > But first I have a problem with installing > "Class::Inner". > > I got an error message when running "make test" > > =============================================== > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib > -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -e 'use > Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t > t/basic.............FAILED tests 1-13 > Failed 13/13 tests, 0.00% okay > Failed Test Status Wstat Total Fail Failed List of failed > ------------------------------------------------------------------------------- > t/basic.t 13 13 100.00% 1-13 > Failed 1/1 test scripts, 0.00% okay. 13/13 subtests failed, 0.00% okay. > make: *** [test_dynamic] Error 29 > =============================================== I'll leave Piers to deal with questions about Class::Inner. > If I ignore the error message, continue with "make install", things seem > to be ok. No more error messages generated. > > However, after I installed Devel::Symdump and Tk as well and run the test > > "perl -w -I./lib -I./t/tlib TestRunner.pl AllTests" You should be running 'make test' instead, as AllTests doesn't actually contain all the self-tests. This doesn't explain the errors you are seeing, however. > I got another error message as: > > =============================================== > Subroutine make_new_from_error redefined at > /usr/lib/perl5/site_perl/5.6.0/i386-linux/Test/Unit/Error.pm line 8. > Bareword found where operator expected at t/tlib/ExceptionChecker.pm line > 37, near "$exception_class with" > (Missing operator before with?) > .this set_up dies at t/tlib/TestTest.pm line 219. > =============================================== > > And if I remove "Error.pm" from that directory, I got another message as: > > =============================================== > Can't locate Test/Unit/Error.pm in @INC (@INC contains: ./lib ./t/tlib > /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 > /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 > /usr/lib/perl5/site_perl .) at lib/Test/Unit/Result.pm line 5. > BEGIN failed--compilation aborted at lib/Test/Unit/Result.pm line 5. > Compilation failed in require at lib/Test/Unit/Runner.pm line 4. > BEGIN failed--compilation aborted at lib/Test/Unit/Runner.pm line 4. > Compilation failed in require at (eval 2) line 3. > ...propagated at /usr/lib/perl5/5.6.0/base.pm line 62. > BEGIN failed--compilation aborted at lib/Test/Unit/TestRunner.pm line 4. > Compilation failed in require at TestRunner.pl line 6. > BEGIN failed--compilation aborted at TestRunner.pl line 6. > =============================================== > > Could you please help me solving the problem? I'm using a LINUX box with > Red Hat 7.2 and perl v5.6.0 Very strange. Which version of PerlUnit are you using? Please try 0.24 or CVS if you aren't already. Adam |