Compiling your own Windows Binary,<br> (for people who have never used a compiler)
Site hosted by Angelfire.com: Build your free website today!

Compiling your own GnuPG 1.x Windows Binary,
( for people who have never used a compiler )




First, download the gnupg 1.x source code from the gnupg.org site, http://gnupg.org/download/index.en.html

(Here is a relatively *un-busy* mirror: ftp://ftp.hi.is/pub/mirrors/gnupg/gnupg/ )

and verify the signature and checksum.

Then download MINGW and MSYS from sourceforge,
http://sourceforge.net/projects/mingw/files/

(click on 'Download mingw-get-inst-20110802.exe (579.4 kB)',
this will install all the necessary files).

When installing, make sure that MSYS is checked off in the installer.
The default is NOT to install it.

It is much easier to compile things once MSYS is installed,
as it allows the './configure' command to use the gnupg sourcecode to produce everything necessary for the makefile.
The Installer links MSYS to MINGW automatically.
By default, the installer installs to C:\MinGW and installs msys as a subdirectory of C:\MinGW.

Unpack the sourcecode, and for the sake of example in these instructions,
rename the unpacked folder as gnupgxyzFMC and copy it to c:\ resulting in a new folder c:\gnupgxyzFMC
(FMC = For Mingw Compiling ;-) )

Go to the msys subdirectory of c:\MinGW and click on the subdirectory of 1.0, then on msys.bat.

The MinGW-Msys compiler window opens and lists your logon name,
Type: cd c:\gnupgxyzFMC and press enter.
The compiler window now shows you are in /c/gnupgxyzFMC, and you are now ready to work with the files in that folder.

Type: ./configure --prefix=/mingw and press enter.

The compiler checks the sourcecode files for the downloaded 1.x gnupg version
and configures it for compilation on windows using minGW,
and after many many lines, ends with the following:

config.status: creating po/Makefile
Version info: gnupg 1.4.16
Configured for MingW32 (i686-pc-minw32)

(n.b.
it will show the above even if you're on 64 bit windows,
but it will work anyway, and the files produced will also work on 64 bit windows)

type: make and press enter.

After the compiler finishes and the $ prompt is shown again,
the only thing left to do, is to

type: make install and press enter.

Compilers are not known for their entertaining witty messages,
and generally provide only boring information, and may not even tell you that they are done doing whatever it is they do,
but they WILL give you an error message if something is wrong.
Otherwise, 'No news' is 'Good news'.

In this case though, the compiler may give you an error message about 'iconv.dll'.

Politely ignore it.

It isn't necessary for GnuPG functions if you are using the latin alphabet,
and is available from GnuPG.org as a separate download.

http://www.gnupg.org/download/iconv.en.html

After the compiler finishes, type: gpg --version and press enter,
and it displays: gpg (GnuPG) 1.4.16

The compiler has successfully installed gpg.exe, gpgsplit.exe,
gpgv.exe, and gpg-zip into C:\MinGW\bin
and these can now be copied into whatever homedirectory you want.

If you do get an error from gnupg about iconv.dll, then download it from the above gnupg.org link,
check the signature, unpack it, and copy the file iconv.dll , into C:\MinGW\bin .

Now, in the compiler window, type: gpg --version and press enter,
and it should display: gpg (GnuPG) 1.4.16 without any error messages.

CONGRATULATIONS!

You have successfully compiled and installed a working Windows Binary of GnuPG 1.x.


-----


vedaal

pgp keys:

2048 v3 rsa key
keyid: 0x6A05A0B785306D25
fingerprint: 96A6 5F71 1C43 8423 D9AE 02FD A711 97BA

4096 v4 rsa key:
keyids: (primary: 0x5AA20C866A589A97 )
(subkey: 0x04ADEE20 )
fingerprint: ED03 5602 A6A9 093F 0BF7 1BD0 5AA2 0C86 6A58 9A97


Although the above 2 keys work, the following is my preferred key, and is signed by the above 2 keys.

pub 4096R/D35FB186 1/22/2008 vedaal nistar
(no subkeys // same key for both signing and encrypting)

Primary key fingerprint:
C982 4216 3053 B6F3 62F2 7DC0 506F 4FA1 D35F B186

contact: vedaal at nym dot hush dot com