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

Dear Monks-

This all started with trying to get Net::SSH::Perl installed, which I know has been an issue for many others, but I have yet to find information that resolves my particular problem. I think I have narrowed it down to Math::Pari and Pari.so. When I run "make test" it yields 15 failures that all seem to be associated with Pari.so. I've looked through a lot of internet postings (including the ones on this site), but today I ran across the exact failure I am seeing on a CPAN Testers post, unfortunately there is no indication if this is able to be resolved: http://www.mail-archive.com/cpan-testers@perl.org/msg193081.html

I am running on Linux 2.6.23.1-42 FC8 with Perl 5.8.8. The Math::Pari is version 2.010800. The CPAN Testers posting (from 2005) indicates the OS is freebsd, Perl 5.6.1 and Math::Pari 2.010603, but this is the closest thing I have seen to my specific installation issue.

Here is a sample of some of my failure output for comparison:
t/55_analyz......Can't load '/root/.cpan/sources/authors/id/I/IL/ILYAZ/modules/M ath-Pari-2.010800/blib/arch/auto/Math/Pari/Pari.so' for module Math::Pari: /root /.cpan/sources/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.010800/blib/arch/auto/M ath/Pari/Pari.so: cannot restore segment prot after reloc: Permission denied at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. at test_eng/Testout.pm line 4
Compilation failed in require at test_eng/Testout.pm line 4. BEGIN failed--compilation aborted at test_eng/Testout.pm line 4.
...propagated at t/55_analyz.t line 12.
t/55_analyz...... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run

I'm still fairly green where Perl is concerned, and I'm not sure how to interpret these results. The Pari.so file is present and the permissions seem to be set appropriately (755). Can anyone point me in the right direction? I'm not sure if the 5.8.8 version of Perl is no longer compatible or what I might do to resolve this issue. Any input will be greatly appreciated, so thank you in advance for answers...and let me know if I can provide more information, tried to get the vitals posted here.

Replies are listed 'Best First'.
Re: Math::Pari make test fails on Pari.so
by afresh1 (Hermit) on Sep 16, 2008 at 23:14 UTC
      Thank you very much, I've learned something about how to search the CPAN error messages.

      You were right, I needed to set /etc/sysconfig/selinux with SELinux=permissive (was "enforcing"). That and a reboot and I was able to install with full success Math::Pari...we'll see how Net::SSH::Perl goes next. It's taking a while:)

Re: Math::Pari make test fails on Pari.so
by syphilis (Archbishop) on Sep 17, 2008 at 00:48 UTC
    I ran across the exact failure I am seeing on a CPAN Testers post

    No, this is a different failure in that it has a different cause. The CPAN testers failure you've quoted occurs because PERL_UNUSED_VAR is not defined in perl 5.6.1 (though it is defined for perls 5.8 and 5.10). This is not related to your particular problem.

    Cheers,
    Rob
      ...that's good to know too. I think this is why I didn't catch on, I assumed it might be a more severe issue if one of the CPAN testers had made that post.