mercredi 3 août 2011

install pgp on Mac OS X

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

curl -O ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.11.tar.gz
curl -O ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.11.tar.gz.sig

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:

./configure

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

make

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

sudo make install

Reference: http://macgpg.sourceforge.net/docs/howto-build-gpg-osx.txt.asc

[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 fromhttp://www.gnu.org/software/glpk/#downloading
  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 http://gnupg.org);
    The GLPK distribution tarball can be found on http://ftp.gnu.org/gnu/glpk/ [via http] and ftp://ftp.gnu.org/gnu/glpk/ [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 keys.gnupg.net --recv-keys 5981E818

    and then re-run the previous command.
    (if gpg is not installed, refer to: http://hichenwang.blogspot.com/2011/08/install-pgp-on-mac-os-x.html)
  3. Say it’s downloaded to your “Downloads” directory, go there and execute the following commands (using the terminal)
    1.cd ~/Downloads
    2.tar -xzf glpk-4.43.tar.gz
    3../configure --prefix=/usr/local # see note [1]
    4.make
    5.sudo make install
  4. At this point, you should have GLPK installed. Verify it:
    1.which glpsol
    2./usr/local/bin/glpsol
  5. … and try help:
    1.glpsol --help
Now that you are all set-up, read up this excellent introduction using GLPK:http://www.ibm.com/developerworks/linux/library/l-glpk1
Notes:
[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