[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] XML::Parser test (install) failures



So I was trying to run

  perl -MCPAN -e 'install XML::Parser'

and when the tests ran it would throw this goo:

Running make test
make[1]: Entering directory `/tmp/.cpan/build/XML-Parser-2.34/Expat'
make[1]: Leaving directory `/tmp/.cpan/build/XML-Parser-2.34/Expat'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/astress.........Can't load '/tmp/.cpan/build/XML-Parser-2.34/blib/arch/auto/XML/Parser/Expat/ Expat.so' for module XML::Parser::Expat: /tmp/.cpan/build/XML-Parser-2.34/blib/arch/auto/XML/Parser/Expat/ Expat.so: failed to map segment from shared object: Operation not permitted at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
 at /tmp/.cpan/build/XML-Parser-2.34/blib/lib/XML/Parser.pm line 14
Compilation failed in require at /tmp/.cpan/build/XML-Parser-2.34/blib/lib/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /tmp/.cpan/build/XML-Parser-2.34/blib/lib/XML/Parser.pm line 18.
Compilation failed in require at t/astress.t line 11.
BEGIN failed--compilation aborted at t/astress.t line 11.
t/astress.........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-27
        Failed 27/27 tests, 0.00% okay

Since the tests fail, the install would fail. Bummer.

I am not a C programmer, so this stuff usually makes no sense to me at all.

I googled around a bit and found that apparently this has something to do with the fact that my /tmp directory is mounted as noexec (/etc/fstab). So I switch CPAN/Config.pm to tell it to build everything in /root instead of /tmp (so it uses /root/.cpan instead of /tmp/.cpan).

Voila, everything is peachy again.

I don't understand dynamic linking libraries or any of that goo. Maybe I should learn C some day. I seem to need to know C for about 3 hours per year, usually when building stuff... Not really motivated to study C for 3 years just to save myself a few hours a year... :) Perl has made me lazzzzy...

j