AIXCompileGPG

How to compile GPG under AIX

The mission: install some form of encryption on an IBM AIX machine.

The catch: the machine is in another country, does not have any development tools (unless you count awk, sed, and vi) and requires me to ssh to a specific machine on the LAN, ssh to a machine in another country and telnet from there (through a secure VPN) to the server (located in a 3rd country) where gpg should be installed.

How I did it:

Since moving files around was going to be a pain in the neck, I asked the local techie responsible for the site to download the RPM packages for the following programs:

All of these RPM packages can be obtained easily from this page.

If I remember well, installation only requires that you install the two libstdc++ packages before the others. Some packages also need you to install m4 first.

The rest was surprisingly easy:

# ./configure --disable-gnupg-iconv --disable-nls --with-included-zlib --with-included-gettext --with-included-regex
# /opt/freeware/bin/make all
# /opt/freeware/bin/make install

Done!

One important thing to keep in mind is that these operations are actually very slow on an AIX machine, even one that is rather powerful. If you have a fairly twisted connection path to the AIX machine, disconnections are to be expected. And screen is your friend...

Please note that /opt/freeware/bin/make is actually GNU make, not the AIX make.

All that was needed was quickly testing the binary:

# which gpg
/usr/local/bin/gpg
     
# gpg --version
gpg (GnuPG) 1.4.8
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
     
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB

For those of you who'd like to have more info:

# uname -a
AIX galactus 3 5 000459E0D700
     
# oslevel -s
5300-05-05

And there you have it...

See Also: