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
prebuilt installer.

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
minimum:
        a) gcc-core-3.4.5-20060117-1.tar.gz
        b) binutils-2.17.50-20060824-1.tar.gz
        c) mingw-runtime-3.10.tar.gz
        d) w32api-3.7.tar.gz
        e) mingw-utils-0.3.tar.gz

        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:
        a) bzip2-1.0.3-1-bin.zip
        b) bzip2-1.0.3-1-lib.zip
        c) gettext-0.14.4-bin.zip
        d) gettext-0.14.4-dep.zip
        e) gettext-0.14.4-lib.zip
        f) libiconv-1.9.2-1-bin.zip
        g) libiconv-1.9.2-1-lib.zip
        h) readline-5.0-bin.zip
        i) readline-5.0-lib.zip
        j) zlib-1.2.3-bin.zip
        k) zlib-1.2.3-lib.zip

        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
                                or
                tar xzf /path/to/gnupg-1.4.5.tar.gz

           Depending on which version you download

        2) cd gnupg-1.4.5

        3) ./configure

        4) make

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
        Supported algorithms:
        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
check. (http://www.google.com/search?q=gnupg+building+win32)


-- 
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?"

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to