Follow Me

Get updates on my activity. Follow me on my Profile.
You've reached the personal blog of David Jacobs. I live in New York City, and I'm eating two hamburgers a week on doctor's orders. When you're done with the front page, you can read the archives. You can keep up with me elsewhere on my reblog, my vox blog, randomWalks or flickr, and last but not least, my Typepad profile.

Testimonials

  • "One of the few people that makes me laugh aloud on a daily basis." – Simon Reading, Six Apart
  • "My son's blog is a little political and techie, but it is rather stunning in its construction." – Erica Jacobs, Mother.

Twitter Updates

    follow me on Twitter
    Blog powered by TypePad
    Member since 07/2003

    « Apprentice Notes (Commercials Count) | Main | Fun Test »

    September 10, 2004

    Installing Math::Pari on OS X

    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

    TrackBack

    TrackBack URL for this entry:
    http://www.typepad.com/services/trackback/6a00d8341e3ac753ef00d83457736169e2

    Listed below are links to weblogs that reference Installing Math::Pari on OS X:

    » Installing Math::Pari and Crypt::DSA for Movable Type under Mac OS X from Two Worlds
    Configuring Movable Type 3.x under Mac OS X: Installing the Math::Pari and Crypt::DSA perl modules [Read More]

    Comments