Problem with Test::Inline

I am running rhel4, u3 and i’m suprised Test::Inline has been so hard to
install from cpan. I have installed the Module::Build from
http://www.city-fan.org/ftp/contrib/perl-modules/RPMS.rhel4/ andthen
the only module left that can’t install is Test::Inline. It seems to
depend on File::Flat and File::Remove, when I try: perl -MCPAN -e
‘install File::Remove’ I get an error like this:

CPAN.pm: Going to build A/AD/ADAMK/File-Remove-0.33.tar.gz

Checking if your kit is complete…
Looks good
Writing Makefile for File::Remove
CPAN: YAML loaded ok
cp lib/File/Remove.pm blib/lib/File/Remove.pm
Manifying blib/man3/File::Remove.3pm
/usr/bin/make – OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e”
“test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/01_compile…ok
t/02_directories…ok
t/03_deep_readonly…NOK 14/0

Failed test ‘Created t/d1/d2/f3.txt -w’

in t/03_deep_readonly.t at line 47.

Looks like you failed 1 test of 16.

t/03_deep_readonly…dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 14
Failed 1/16 tests, 93.75% okay
t/99_author…skipped
all skipped: Author tests not required for installation
Failed Test Stat Wstat Total Fail List of Failed
t/03_deep_readonly.t 1 256 16 1 14
1 test skipped.
Failed 1/4 test scripts. 1/171 subtests failed.
Files=4, Tests=171, 0 wallclock secs ( 0.31 cusr + 0.04 csys = 0.35 CPU)
Failed 1/4 test programs. 1/171 subtests failed.
make: *** [test_dynamic] Error 255
/usr/bin/make test – NOT OK
Running make install
make test had returned bad status, won’t install without force

If someone has any idea, please let me know. There doesn’t seem to be
any RPM for this with all the required components.

I am running rhel4, u3 and i’m suprised Test::Inline has been so hard
to
install from cpan. I have installed the Module::Build from

Did you try this from within the RT directory you unpacked the source to
?
make fixdeps

This has worked fine for me in the past on Red Hat ES3.

Didn’t work ? No Prob. I recently installed a RT 3.6.1 on an old SuSE
machine and had no luck with make fixdeps, which sounds a little like
what might be happening for you.
Try this
perl -MCPAN -eshell
install File::Flat

See if it complains about a dependency, if so, hand install that one,
then do a ‘clean Module::Name’ and try again.

I got the list of missing dependencies from ‘make testdeps’ and
essentially worked my way backwards, from things which had no
dependencies towards the things I was having trouble installing.

If you come up against a complete block & its just the testing that
fails in part (you’ll notice your one said - Failed 1/16 tests, 93.75%
okay) try a
perl -MCPAN -eshell
force install Module::Name

Good luck.

  • Scott

I had the exact same problems. I was using sudo to install modules, and I
think the tests get confused about file permissions when running under
sudo. I ran the test manually without sudo, and it passed, so then I
simply forced the install in CPAN.

Travis

Travis C. Brooks
SPIRES Scientific Databases Manager
Stanford Linear Accelerator Center
http://www.slac.stanford.edu/spiresOn Tue, 31 Oct 2006, Justin Zygmont wrote:

I am running rhel4, u3 and i’m suprised Test::Inline has been so hard to
install from cpan. I have installed the Module::Build from
http://www.city-fan.org/ftp/contrib/perl-modules/RPMS.rhel4/ andthen
the only module left that can’t install is Test::Inline. It seems to
depend on File::Flat and File::Remove, when I try: perl -MCPAN -e
‘install File::Remove’ I get an error like this:

CPAN.pm: Going to build A/AD/ADAMK/File-Remove-0.33.tar.gz

Checking if your kit is complete…
Looks good
Writing Makefile for File::Remove
CPAN: YAML loaded ok
cp lib/File/Remove.pm blib/lib/File/Remove.pm
Manifying blib/man3/File::Remove.3pm
/usr/bin/make – OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e”
“test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/01_compile…ok
t/02_directories…ok
t/03_deep_readonly…NOK 14/0

Failed test ‘Created t/d1/d2/f3.txt -w’

in t/03_deep_readonly.t at line 47.

Looks like you failed 1 test of 16.

t/03_deep_readonly…dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 14
Failed 1/16 tests, 93.75% okay
t/99_author…skipped
all skipped: Author tests not required for installation
Failed Test Stat Wstat Total Fail List of Failed

t/03_deep_readonly.t 1 256 16 1 14
1 test skipped.
Failed 1/4 test scripts. 1/171 subtests failed.
Files=4, Tests=171, 0 wallclock secs ( 0.31 cusr + 0.04 csys = 0.35 CPU)
Failed 1/4 test programs. 1/171 subtests failed.
make: *** [test_dynamic] Error 255
/usr/bin/make test – NOT OK
Running make install
make test had returned bad status, won’t install without force

If someone has any idea, please let me know. There doesn’t seem to be
any RPM for this with all the required components.


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Scott Golby wrote:

I am running rhel4, u3 and i’m suprised Test::Inline has been so hard
to
install from cpan. I have installed the Module::Build from

Did you try this from within the RT directory you unpacked the source to
?
make fixdeps

This has worked fine for me in the past on Red Hat ES3.

Didn’t work ? No Prob. I recently installed a RT 3.6.1 on an old SuSE
machine and had no luck with make fixdeps, which sounds a little like
what might be happening for you.
Try this
perl -MCPAN -eshell
install File::Flat

See if it complains about a dependency, if so, hand install that one,
then do a ‘clean Module::Name’ and try again.

I got the list of missing dependencies from ‘make testdeps’ and
essentially worked my way backwards, from things which had no
dependencies towards the things I was having trouble installing.

If you come up against a complete block & its just the testing that
fails in part (you’ll notice your one said - Failed 1/16 tests, 93.75%
okay) try a
perl -MCPAN -eshell
force install Module::Name

Thanks everyone for the helpful idea. I did a force and it seems to
work ok.