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

I am attempting to install Math::Pari (with the eventual goal of installing Net::SSH::Perl), but the module keeps installing. I can provide the entire output on request, but I'm pretty confident these lines are pointing at the issue:

Running make test ... t/000_load-problem.t .. ok t/00_Pari.t ........... Can't load '~homedir/.cpan/build/Math-Pari-2.0 +1080605-miKyiV/blib/arch/auto/Math/Pari/Pari.so' for module Math::Par +i: 0509-161 There is not enough memory for the process. rtld: 0712-001 Symbol init_opts was referenced from module ~homedir/.cpan/build/Math-Pari-2.01080605-miKyiV/bli +b/arch/auto/Math/Pari/Pari.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol init_defaults was referenced from module ~homedir/.cpan/build/Math-Pari-2.01080605-miKyiV/bli +b/arch/auto/Math/Pari/Pari.so(), but a runtime definition of the symbol was not found. ...

However, I have checked, and still have plenty of memory available on this system, so I don't know what it's complaining about. I've also tried installing this module from a few different systems with the same result (all systems are configured very similarly).

I've Googled this, but while I've found a ton of issues from other people failing to install Math::Pari for almost as many unique reasons, I couldn't find any hits for my specific error.

  • Comment on Math::Pari installation fails due to not enough memory for Pari.so loading
  • Download Code

Replies are listed 'Best First'.
Re: Math::Pari installation fails due to not enough memory for Pari.so loading
by salva (Canon) on Sep 01, 2011 at 07:02 UTC
      I've tried both of those already and seem not to be able to use either of them. See 923531 regarding OpenSSH. SSH2 compilation fails because it can't find include files libssh2.h, libssh2_sftp.h, and libssh2_publickey.h, even though I explicitly passed in to Makefile.PL $HOMEDIR/lib as the lib directory and $HOMEDIR/include as the inc directory, and have verified that all those .h's do in fact exist in $HOMEDIR/include:
      $HOMEDIR/bin/pperl "-Iinc" $HOMEDIR/lib/5.14.1/ExtUtils/xsubpp -typem +ap $HOMEDIR/lib/5.14.1/ExtUtils/typemap -typemap typemap SSH2.xs > S +SH2.xsc && mv SSH2.xsc SSH2.c cc_r -q64 -c $HOMEDIR/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX +_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_ +INIT -I/usr/local/include -q64 -DUSE_64_BIT_ALL -q64 -O -DVERSION=\ +"0.39\" -DXS_VERSION=\"0.39\" "-I$HOMEDIR/lib/5.14.1/aix-thread-mult +i-64all/CORE" SSH2.c "SSH2.xs", line 16.10: 1506-296 (S) #include file <libssh2.h> not foun +d. "SSH2.xs", line 17.10: 1506-296 (S) #include file <libssh2_sftp.h> not + found. "SSH2.xs", line 18.10: 1506-296 (S) #include file <libssh2_publickey.h +> not found. ...