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

I need to use this module. I am attempting to install it via cpan. The 'make test' fails with 14 of the following errors (all similar, just different files). Any ideas

Test returned status 2 (wstat 512, 0x200) t/zz_leak.............Can't load '/root/.cpan/build/Math-Pari-2.010806 +05/blib/arch/auto/Math/Pari/Pari.so' for module Math::Pari: /root/.cp +an/build/Math-Pari-2.01080605/blib/arch/auto/Math/Pari/Pari.so: canno +t restore segment prot after reloc: Permission denied at /usr/lib/per +l5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. at t/zz_leak.t line 17 Compilation failed in require at t/zz_leak.t line 17. BEGIN failed--compilation aborted at t/zz_leak.t line 17. t/zz_leak.............dubious

Replies are listed 'Best First'.
Re: Math::Pari module
by salva (Canon) on Sep 27, 2013 at 07:59 UTC

      Thanks everyone for the help. The problem ended up being SELinux not liking the Math::Pari module. Just did a setenforce 0, installed Net::SSH::Perl with the force command (CPAN Shell), and then turned selinux back on. Working great.
      Superdoc, appreciate the tip on the other SSH options. I've always found Net::SSH:Perl to be a bit cumbersome, but it's worked for me. Moving forward I will look at using your suggestions.

      Thanks everyone for the help. The problem ended up being SELinux not liking the Math::Pari module. Superdoc, appreciate the tip on the other SSH options. I've always found Net::SSH:Perl to be a bit cumbersome, but it's worked for me. Moving forward I will look at using your suggestions.

Re: Math::Pari module
by dasgar (Priest) on Sep 26, 2013 at 22:23 UTC

    One of the prerequisites for that module is the PARI library. I'm not very experienced with *nix type OSes, but based on the error message that you shared, it looks like you either don't have the PARI library installed or don't have permissions to access the PARI library.

Re: Math::Pari module
by 2teez (Vicar) on Sep 26, 2013 at 23:28 UTC

    Hi finfan,
    How are you installing your module?
    If you have cpanm installed on your system, you can simply install Math::Pari module from the CLI like thus:
    sudo cpanm Math::Pari
    I just did without any stress whatsoever.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
Re: Math::Pari module
by wjw (Priest) on Sep 26, 2013 at 22:38 UTC
    Just as a quick check, are you running under sudo or as root while installing from CPAN? The permission denied looks a bit like what I would expect if I were running as a non-privileged user...
    • ...the majority is always wrong, and always the last to know about it...
    • ..by my will, and by will alone.. I set my mind in motion