Skip to content

Instantly share code, notes, and snippets.

@ctbarna
Created September 23, 2011 00:13
Show Gist options
  • Save ctbarna/1236428 to your computer and use it in GitHub Desktop.
Save ctbarna/1236428 to your computer and use it in GitHub Desktop.

Installing PARI/GP on Mac

Prerequisites

  • Apple Developer Tools
    • Note: this is like 2GB. You might be better off simply installing the gcc compiler from here. I actually have no idea if this will work but if somebody is brave enough to try, that'd be awesome.
  • Slight knowledge of the command line (or at least a little bravery and some faith).
  • An admin account. This is not 100% necessary but makes life 98% easier. Trust me.

Installation (The Easy Way)

  1. Open up Terminal(.app), located in /Applications/Utilites.
  2. Copy and paste this line into the terminal: curl -fsSL https://raw.github.com/gist/1236387 | sh. Hit enter.
  3. When prompted for a password, enter the correct one (nothing will show up).
  4. Success. Type in gp (enter) to make sure it works.

Installation (The Hard Way)

  1. Download the stable source distrobution (2.5.0 as of this writing) from the PARI/GP website.
  2. If your browser didn't automatically unzip the file, go to the download folder and unzip it.
  3. Open up Terminal(.app), located in /Applications/Utilities
  4. Type cd Downloads/pari-2.5.0. Hit enter.
  5. Type ./Configure. Hit enter.
  6. Type sudo make install. Hit enter. Enter your password when prompted.
  7. If there are no errors, you now have PARI/GP installed! Type in gp (enter) to try it out.

Running

To run every time, simple open up the Terminal and type gp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment