Math::Pari Help Needed, badly.

Discussion in 'Perl Misc' started by Rhugga, Jul 21, 2005.

  1. Rhugga

    Rhugga Guest

    Ive pulled all my hair out trying to get Math::pari built on Solaris 9.
    Is anyone using any version of this module successfully on Solaris 9? I
    downloaded pari from megaherz seperately and got it to build but now
    Math::pari itself pukes.

    I get a good ways into the compile and get this error:
    /usr/local/bin/perl -pe1
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/mp.c
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/cmp.c
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/gcdll.c
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/ratlift.c
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/gcd.c
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/invmod.c
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/mp_indep.c
    /usr/local/src/pari-2.2.10.alpha/src/kernel/none/add.c > mp.c
    gcc -B/usr/ccs/bin/ -c -I/usr/local/src/pari-2.2.10.alpha/src/headers
    -I/usr/local/src/pari-2.2.10.alpha/src/graph -I. -fno-strict-aliasing
    -pipe -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE
    -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
    -Derr=pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o
    mp.o mp.c
    .../src/kernel/none/mp.c:24:41: ../src/kernel/none/tune-gen.h: No such
    file or directory
    *** Error code 1
    make: Fatal error: Command failed for target `mp.o'
    Current working directory /root/.cpan/build/Math-Pari-2.010603/libPARI
    *** Error code 1
    make: Fatal error: Command failed for target `libPARI/libPARI.a'

    Do I need to try and older version or is this a file that should be
    present in my OS or what?

    Thx,
    Rhugga, Jul 21, 2005
    #1
    1. Advertising

  2. Rhugga

    Sisyphus Guest

    "Rhugga" <> wrote

    > ../src/kernel/none/mp.c:24:41: ../src/kernel/none/tune-gen.h: No such
    > file or directory
    > *** Error code 1
    > make: Fatal error: Command failed for target `mp.o'



    I haven't built Math::pari since Pari-2.1.4. The current stable version is
    2.1.6 which you can get here:
    http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.1.6.tgz

    The 'src/kernel/none/mp.c' that ships with that version does *not* attempt
    to include a file named 'tune-gen.h' - so I can guarantee that you won't get
    that error if you use that as your Pari source.

    The version of Pari that you are using (2.2.10) is alpha, and is also
    available here:
    http://pari.math.u-bordeaux.fr/pub/pari/unstable/pari-2.2.10.alpha.tar.gz

    I note that, in this version, 'src/kernel/none/mp.c' does indeed have the
    line:
    #include "../src/kernel/none/tune-gen.h"

    It also contains the line:
    #include "paripriv.h"

    The inclusion of 'paripriv.h' produces no error, and since 'paripriv.h 'is
    in the 'src/headers' folder, one deduces that the current working directory
    must be the 'src/headers' directory. One further deduces that the correct
    way to include 'tune-gen.h' in 'mp.c' would therefore be to:
    #include "../kernel/none/tune-gen.h"

    Try that amendment and see how it goes .... though, personally, I would be
    using 2.1.6 instead.

    Cheers,
    Rob
    Sisyphus, Jul 22, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jussi Mononen

    Math::Pari test fail on Compaq OSF1 5.1b

    Jussi Mononen, Jan 2, 2004, in forum: Perl
    Replies:
    0
    Views:
    678
    Jussi Mononen
    Jan 2, 2004
  2. Haydin

    Install Poblem MATH::Pari

    Haydin, Mar 18, 2005, in forum: Perl
    Replies:
    0
    Views:
    1,389
    Haydin
    Mar 18, 2005
  3. gnu valued customer

    Pari lib with Math-BigInt (win32)

    gnu valued customer, May 24, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    145
    Sisyphus
    May 26, 2004
  4. btna
    Replies:
    2
    Views:
    167
  5. VK
    Replies:
    15
    Views:
    1,120
    Dr J R Stockton
    May 2, 2010
Loading...

Share This Page