mercredi 3 août 2011

install pgp on Mac OS X

1: Begin by downloading and verifying the GnuPG archives from
<>.  Here's what to type:

curl -O
curl -O

2: To verify:

gpg --verify gnupg-1.4.11.tar.gz.sig

or, if you don't have an older copy of GnuPG or another OpenPGP program
(NEVER verify the version of GnuPG you download with itself), use the SHA-1
checksums found on the GnuPG Web site and compare with the checksum from:

openssl sha1 gnupg-1.4.11.tar.gz

3: Next, untar GnuPG:

tar -xzf gnupg-1.4.11.tar.gz

And move into the GnuPG directory:

cd gnupg-1.4.11

4: Now you need to set up GnuPG to build on your system.  You do this by
running configure:


5: Once you have everything configured, it's time to compile GnuPG by running:


6: If all tests pass, the only thing left to do is type:

sudo make install


[FW] Installing GLPK on a Mac

So you want copy-paste instructions to install GLPK on your Macbook? Here are the steps:

  1. Download the latest version of GLPK from
  2. Optional: Follow the instructions to verify the download (you might need to get GNU Privacy Guard or gpg for this. You can get it at;
    The GLPK distribution tarball can be found on [via http] and [via FTP]. It can also be found on one of our FTP mirrors; please use a mirror if possible.
    To make sure that the GLPK distribution tarball you have downloaded is intact you need to download the corresponding .sig file and run a command like this:
    gpg --verify glpk-4.32.tar.gz.sig

    If that command fails because you do not have the required public key, run the following command to import it:
    gpg --keyserver --recv-keys 5981E818

    and then re-run the previous command.
    (if gpg is not installed, refer to:
  3. Say it’s downloaded to your “Downloads” directory, go there and execute the following commands (using the terminal) ~/Downloads
    2.tar -xzf glpk-4.43.tar.gz
    3../configure --prefix=/usr/local # see note [1]
    5.sudo make install
  4. At this point, you should have GLPK installed. Verify it:
    1.which glpsol
  5. … and try help:
    1.glpsol --help
Now that you are all set-up, read up this excellent introduction using GLPK:
[1]: HiveLogic article on why using /usr/local is better
[2] If you want MySQL support (or something “extra”) check out the INSTALL file in the package