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

I am trying to install the above module on an Ultra60/Solaris 8 box with Perl 5.8.6 and GCC 3.4.2

The problem is with Math::Pari which is proving a real handful to get installed.

I have the latest stable pari libs but if I try to build I get an as conflict on overflow in asm clobber list error.

If I try to build Math::Pari without prebuilding pari I get the same error on hiremainder.

It seems from Google that I am not the only one with this issue but so far can't find a solution.

Perl was build from source on this machine with gcc 3+, can't remember exactly which but likely to be gcc 3.3. I've tried using gcc 3.3 with same results so upgraded to 3.4 as that was reported to work.

On another box (1405t) I am building pari with gcc3.2 but get "multiply-defined" errors on _dso_handle, _init, _start, _fini, _lib_version.

Math::Pari builds but all tests fail on "relocation error".

O yes, I'm trying for 32bit versions of everything.

2006-02-07 Retitled by planetscape, as per Monastery guidelines
Original title: 'Installing Net::SSH::Perl'

  • Comment on Installing Net::SSH::Perl - problems with Math::Pari

Replies are listed 'Best First'.
Re: Installing Net::SSH::Perl - problems with Math::Pari
by u235sentinel (Hermit) on Feb 06, 2006 at 16:50 UTC
    I tried installing Net::SSH::Perl on a Solaris 8/9 system and ran into numerous issues. After digging a bit, one of the README documents discussed building the required modules under Sun. I don't recall exactly which module mentioned this but I understood the problem was SUN Perl was built with Sun's C compiler. Trying to build under gcc had numberous problems because pieces were missing.

    If you have Sun's C compiler it should work. I'm going from memory here but I believe if you switched from kpic to using fpic then it seemed to work. I didn't get very far with this and eventually switched to building under SLES8 Linux. This seemed to work very well. If this doesn't make sense let me know. I'm digging and can't find which module actually said that.

    I also strongly recommend running "make test" after installing each module. It helped guide me a bit. There were failures during the build caused by missing dependancies. IMO installing this module was a little heavy on the dependancies however it works well once installed properly. I now have two servers running it just fine (under Linux).

    I know this doesn't directly answer your question. I'm hoping it helps you find your way. Please let me know if you are still having problems. This was one of the toughest installations I've done with Perl.
      Still no joy.

      I've installed Perl 5.8.8 built with gcc 3.4.2 on the box I'm trying to build Math::Pari on.

      I've tried to hide the GNU ld and as (use ccs versions) and visa versa.

      libpari-2.1.7 won't work at all, the beta 2.2.n does compile the library but fails to build Math::Pari. I get errors in Pari.xs

      function installep - initialization makes pointer from integer without a cast
      function my_gpui - prec undeclared
      function setprecision = prec undeclared
      function fillargvect = prec undeclared
      function XS_Math__Pari_interface?? = prec undeclared (replace ?? with digits)
      INIT_JMP_off undeclared
      INIT_SIG_off undeclared
      pari_modules undeclared
      helpmessages_highlevel undeclared

        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