Compiling GnuPG 1.4.5 for Windows on Windows
JPClizbe at comcast.net
Wed Sep 6 19:28:48 CEST 2006
C Yohman wrote:
> How do I do this?
Not exactly a GnuPG-Users level question, Unless you have a specific requirement
to build your own binaries, you will find it much easier sticking to the
Most any system administrator or developer with a background in building
POSIX-type software should be able to handle it without too much difficulty. It
is certainly much easier now than it was three years ago.
If you are looking to use any version of Microsoft's Visual Studio, forget it.
The official method is cross-compiling on a Debian system for win32. To build
natively on win32, one would normally start by Googling gnupg+win32+building.
Here's a short summary of the steps needed.
First thing you need is a build environment.
1) Go to the MinGW project at Sourceforge. Install the following packages at a
The current version numbers may differ from those above
2) You need a shell to execute configure, make and possibly autotools so install
MSYS from the same site.
3) Now head to the GnuWin32 project (also at SourceForge). Download and install
into the MinGW root:
The current version numbers may differ from those above. Alternatively,
you could download the source and build these yourself using your
just installed MinGW/MSYS software.
4) Goto http://curl.haxx.se/download.html and download and install the current
curl (7.15.4) IIRC. Can't help with the exact file to download as I built
(openssl and) curl myself
Now you are ready to grab the source and compile it.
Using your browser or ftp client download the GnuPG-1.4.5 source and signature
files. Verify the source tarball.
Open a MSYS shell window
1) Extract the source
tar xjf /path/to/gnupg-1.4.5.tar.bz2
tar xzf /path/to/gnupg-1.4.5.tar.gz
Depending on which version you download
2) cd gnupg-1.4.5
If all went well, running the command 'g10/gpg --version' from the top level
source directory will return something similar to:
$ g10/gpg --version
gpg (GnuPG) 1.4.5
Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Home: C:/Documents and Settings/username/Application Data/GnuPG
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
You may find detailed step-by-step instructions at Carlo Bianco's "Building
GnuPG for Win32 using MinGW" page, but he takes extra steps that IMO are
unnecessary. The only one I've ever used is patching the one test under make
John P. Clizbe Inet: John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. PGP/GPG KeyID: 0x608D2A10/0x18BB373A
"what's the key to success?" / "two words: good decisions."
"what's the key to good decisions?" / "one word: experience."
"how do i get experience?" / "two words: bad decisions."
"Just how do the residents of Haiku, Hawai'i hold conversations?"
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 663 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20060906/d8a79888/signature.pgp
More information about the Gnupg-users