in reply to Re^2: Installing Net::SSH::Perl - problems with Math::Pari
in thread Installing Net::SSH::Perl - problems with Math::Pari

Haven't built Math::Pari for a while - last time I did build it I had good results following the instructions for the "manual procedure" that you'll find in the INSTALL file in the Math::Pari source tarball. (This way you don't have to actually build libpari.)

I didn't run './Configure' as mentioned in step b), and I didn't bother with 'make test' as mentioned in step c).

Have you tried that approach ? If so, at which step did you strike trouble ?

Cheers,
Rob
  • Comment on Re^3: Installing Net::SSH::Perl - problems with Math::Pari

Replies are listed 'Best First'.
Re^4: Installing Net::SSH::Perl - problems with Math::Pari
by tweetiepooh (Hermit) on Feb 08, 2006 at 10:23 UTC
    Sort of success.

    I finally got a build/test/install to work by using the portable code

    $ perl Makefile.PL machine=port
    Obviously this is not ideal. If I follow the manual instructions then I get (note this is different from the initial problem as that used pari 2.2)
    First I need to edit the code that FTP's pari libs as I can't use exte +rnal ftp. All I did was point at localhost and put the archive in a +known place. $ perl Makefile.PL ... gets the code (2.1.7) and patches it. id's my machine as sparcv9 so sets build to sparcv8-micro ... $ make ... (compiling gen1.c) ./pariinl.h: In function `gmul': ./pariinl.h:887: error: asm-specifier for variable `hiremainder' confl +icts with asm clobber list ...
    Now if I try to config and build libpari separately.
    $ make gp ... (compiling mp.c) ../src/kernel/none/mp.c: In function `addrr': ../src/kernel/none/mp.c:598: error: asm-specifier for variable `overfl +ow' conflicts with asm clobber list ../src/kernel/none/mp.c:634: confused by earlier errors, bailing out ...
    I get the same errors if I manually get pari, unpack it to a sibling of the Math::Pari build area, Configure libpari then try to make Math::Pari.
      I agree that the portable C build is less than ideal - but does it create a significant performance hit wrt the way it's being used by Net::SSH::Perl ?

      The "manual procedure" still works fine for me with pari-2.1.7 and Math::Pari-2.010703 on both Win32 and Linux - but that's on an ix86 architecture. Check out http://rt.cpan.org/Public/Dist/Display.html?Name=Math-Pari and see if there's anything there that helps. In particular, click on the link to bug 12324. Seems that someone made some progress on sparcv9 with the previous version of Math::Pari.

      Cheers,
      Rob