Math::Pari Help Needed, badly.

R

Rhugga

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,
 
S

Sisyphus

Rhugga said:
../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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top