in reply to Math::Pari for Perl 5.10 on Win32

Couldn't actually find a binary on any of the ppm reps. But Pari-2.010800 builds trivially for me on Strawberry's 5.10.0.

Just download the Pari-2.010800.tar.gz source tarball from CPAN and extract it to some location. Then extract the pari-2.1.7 source into the top level source folder. That is, the top level Math-Pari-2.010800 source folder, in addition to the Makefile.PL, 't' folder, MANIFEST, etc. will then also contain a folder called 'pari-2.1.7' that contains the pari source.

It's then just a matter of running 'perl Makefile.PL', 'dmake test', and 'dmake install'.

For the pari source, http://pari.math.u-bordeaux.fr/download.html provides the pari-2.3.4 source. You could try that instead of the 2.1.7 source, but it may not work with Math-Pari ... in which case you'll need to track down the 2.1.7 source.

Other than that, if you /msg me your email address I could send you a ppm. (Or I could send you the pari-2.1.7 source if you're having trouble tracking it down.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Math::Pari for Perl 5.10 on Win32
by Anonymous Monk on Sep 03, 2008 at 03:04 UTC
    or just perl Makefile.PL force_download to download pari source
      Interesting ... I was unaware of that option. Does it enable you to get the 2.1.7 source ?
      I've just tried building Math-Pari-2.010800 against pari-2.3.4 on Strawberry 5.10 and it's certainly *not* a trivial exercise. Firstly, to get it to compile I inserted the following code into pari-2.3.4/src/language/init.c:
      #ifndef PARI_VERSION_SHIFT #define PARI_VERSION_SHIFT 8 #endif #ifndef PARI_VERSION_CODE #define PARI_VERSION_CODE 131844 #endif
      Perhaps that's not the correct way to get it to build. There's lots of failing tests:
      t/00_Pari..............`centerlift' is not a Pari function name at C:\ +_32\comp\Math-Pari-2.010800\blib\lib/Math/Pari.pm line 1125. "centerlift" is not exported by the Math::Pari module Can't continue after import errors at C:\_32\comp\Math-Pari-2.010800\b +lib\lib/Math/Pari.pm line 1133 BEGIN failed--compilation aborted at t/00_Pari.t line 467. t/00_Pari.............. Dubious, test returned 9 (wstat 2304, 0x900) No subtests run t/55_analyz............ Failed 4/6 subtests t/55_ellglobalred......skipped: no tests found in `t/.././pari-2.3.4/s +rc/test/32/ellglobalred' t/55_elliptic.......... Failed 41/46 subtests t/55_galois............skipped: no tests found in `t/.././pari-2.3.4/s +rc/test/32/galois' t/55_graph.............# Can't locate Term/Gnuplot.pm in @INC, ignorin +g plotting t/55_graph.............1/28 Argument "Pi" isn't numeric in multiplicat +ion (*) at (eval 16) line 1. t/55_graph............. Failed 3/28 subtests t/55_intnum............1/51 Argument "I" isn't numeric in multiplicati +on (*) at (eval 16) line 1. t/55_intnum............ Failed 28/51 subtests t/55_linear............Argument "Pi" isn't numeric in multiplication ( +*) at (eval 1) line 1. Argument "Pi" isn't numeric in multiplication (*) at (eval 2) line 1. t/55_linear............1/102 Unquoted string "random" may clash with f +uture reserved word at (eval 43) line 1. Argument "I" isn't numeric in addition (+) at (eval 62) line 1. Unquoted string "random" may clash with future reserved word at (eval +78) line 1. Unquoted string "random" may clash with future reserved word at (eval +79) line 1. t/55_linear............ Failed 79/102 subtests t/55_nfields...........1/161 Unquoted string "random" may clash with f +uture reserved word at (eval 5) line 1. Unquoted string "random" may clash with future reserved word at (eval +6) line 1. t/55_nfields........... Failed 45/161 subtests t/55_number............ Failed 79/83 subtests t/55_objets............1/60 Deep recursion on subroutine "Math::Pari:: +O" at C:\_ 32\comp\Math-Pari-2.010800\blib\lib/Math/Pari.pm line 1154. t/55_objets............ Dubious, test returned 253 (wstat 64768, 0xfd0 +0) Failed 51/60 subtests t/55_ploth.............# Can't locate Term/Gnuplot.pm in @INC, ignorin +g plotting t/55_ploth.............1/34 Argument "Pi" isn't numeric in multiplicat +ion (*) at (eval 14) line 2. Argument "Pi" isn't numeric in multiplication (*) at (eval 15) line 1. Argument "Pi" isn't numeric in multiplication (*) at (eval 16) line 1. t/55_ploth............. Failed 6/34 subtests t/55_polyser...........1/51 Deep recursion on subroutine "Math::Pari:: +O" at C:\_ 32\comp\Math-Pari-2.010800\blib\lib/Math/Pari.pm line 1154. t/55_polyser........... Dubious, test returned 253 (wstat 64768, 0xfd0 +0) Failed 49/51 subtests t/55_program...........1/37 Argument "Pi" isn't numeric in division (/ +) at (eval 5) line 2. Unquoted string "getrand" may clash with future reserved word at (eval + 7) line 2. t/55_program........... Failed 9/37 subtests t/55_qfbsolve..........skipped: no tests found in `t/.././pari-2.3.4/s +rc/test/32/qfbsolve' t/55_rfrac.............skipped: no tests found in `t/.././pari-2.3.4/s +rc/test/32/rfrac' t/55_round4............skipped: no tests found in `t/.././pari-2.3.4/s +rc/test/32/round4' t/55_stark.............skipped: no tests found in `t/.././pari-2.3.4/s +rc/test/32/stark' t/55_sumiter...........1/21 Argument "Pi" isn't numeric in exponentiat +ion (**) at (eval 9) line 2. Argument "Pi" isn't numeric in exponentiation (**) at (eval 19) line 2 +. t/55_sumiter........... Failed 18/21 subtests t/55_trans.............1/61 Deep recursion on subroutine "Math::Pari:: +O" at C:\_ 32\comp\Math-Pari-2.010800\blib\lib/Math/Pari.pm line 1154. t/55_trans............. Dubious, test returned 253 (wstat 64768, 0xfd0 +0) Failed 61/61 subtests t/PlotRect.............# This build has no highlevel functions, ignori +ng the test t/PlotRect.............skipped: this build has no highlevel functions t/zz_leak..............ok . . Files=22, Tests=600, 45 wallclock secs ( 0.50 usr + 0.14 sys = 0.64 +CPU) Result: FAIL Failed 14/22 test programs. 329/600 subtests failed.
      There were a number of segfaults scattered throughout the running of those tests, too.

      Cheers,
      Rob
        Perhaps that's not the correct way to get it to build. There's lots of failing tests:
        Works for me, even with some warnings/failures of the build process.
Re^2: Math::Pari for Perl 5.10 on Win32
by Anonymous Monk on Feb 27, 2012 at 05:18 UTC
    Hi this is sandeep.. I coul't able to install Math::Pari on windows Active Perl. Getting error that.. "Could not run test converter: No such file or directory 65280 at utils/Math/Pari Build.pm line 629." Can you tell the solution or can you send me the .ppd file..
       ppm install http://www.bribes.org/perl/ppm/Math-Pari.ppd
        Thank you.... It was working.. But it requires sfu to install.
Re^2: Math::Pari for Perl 5.10 on Win32
by Anonymous Monk on Feb 27, 2012 at 05:18 UTC
    Hi this is sandeep.. I coul't able to install Math::Pari on windows Active Perl. Getting error that.. "Could not run test converter: No such file or directory 65280 at utils/Math/Pari Build.pm line 629." Can you tell the solution or can you send me the .ppd file.. --Sandeep sandeep.chepuru@gmail.com