Perhaps you were bored with my Apprentice notes?
Mark Pascal asked for platform specific advice to install Math::Pari. I got this to work in Panther, and previously posted my solution to the mt-dev mailing list. Mark wants us "trackback" to his post. Because Yahoo groups don't support trackback and six apart is too cool for comments (or to link to the mt-dev archives MARK), here it is...
It took me 10 hours to compile Math::Pari on darwin/panther! This was extremely demoralizing.
The tutorial at http://www.boksa.de/tutorials/pari_macosx.mpp is OK, but the patch syntax is backwards, some of the notes are irrelevant, and Crypt::Random and Crypt::DSA continue to complain and have to be force installed.
I made the changes described in http://pari.math.u-bordeaux.fr/archives/pari-dev-0212/msg00002.html and it compiled without problem. After that, Crypt::Random and Crypt::DSA installed from the CPAN command line without any errors or warnings, as god intended it to be.
Could a patched version of Math::Pari be bundled with MT 3.1 "Darwin edition," or could a note be added to the documentation?
David
--
Here are the patches from the above listserve, in case the pari
archives disappear:
Index: src/kernel/none/level0.h
===================================================================
RCS file: /home/megrez/cvsroot/pari/src/kernel/none/level0.h,v
retrieving revision 1.4
diff -u -r1.4 level0.h
--- src/kernel/none/level0.h 2002/09/10 23:46:52 1.4
+++ src/kernel/none/level0.h 2002/12/03 12:45:40
@@ -50,8 +50,8 @@
#else
-ulong overflow;
-ulong hiremainder;
+extern ulong overflow;
+extern ulong hiremainder;
INLINE long
addll(ulong x, ulong y)
Index: src/kernel/none/mp.c
===================================================================
RCS file: /home/megrez/cvsroot/pari/src/kernel/none/mp.c,v
retrieving revision 1.91
diff -u -r1.91 mp.c
--- src/kernel/none/mp.c 2002/11/05 15:53:30 1.91
+++ src/kernel/none/mp.c 2002/12/03 12:45:41
@@ -22,6 +22,9 @@
/* version (#ifdef __M68K__) since they are defined in mp.s */
#include "pari.h"
+ulong overflow;
+ulong hiremainder;
+
/* NOTE: arguments of "spec" routines (muliispec, addiispec, etc.) aren't
* GENs but pairs (long *a, long na) representing a list of digits (in basis
* BITS_IN_LONG) : a[0], ..., a[na-1]. [ In ordre to facilitate splitting: no
Recent Comments