Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Math::Pari Help Needed, badly.

Reply
Thread Tools

Math::Pari Help Needed, badly.

 
 
Rhugga
Guest
Posts: n/a
 
      07-21-2005

Ive pulled all my hair out trying to get Math:ari 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:ari 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,

 
Reply With Quote
 
 
 
 
Sisyphus
Guest
Posts: n/a
 
      07-22-2005

"Rhugga" <(E-Mail Removed)> 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:ari 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/p...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/p...0.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











 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
HELP - HELP - HELP =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 4 03-09-2006 12:46 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 1 07-16-2004 01:12 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 0 07-16-2004 10:00 AM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM



Advertisments