Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Math::Pari Help Needed, badly. (http://www.velocityreviews.com/forums/t893384-math-pari-help-needed-badly.html)

Rhugga 07-21-2005 03:05 PM

Math::Pari Help Needed, badly.
 

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,


Sisyphus 07-22-2005 12:48 PM

Re: Math::Pari Help Needed, badly.
 

"Rhugga" <chuck.carson@gmail.com> 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/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













All times are GMT. The time now is 11:04 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.