This evening, I went to install Enigmail on my 64-bit Ubuntu machine. Enigmail is an excellent Thunderbird extension which integrates GnuPG. I was rather shocked though to discover that the Enigmail team don’t offer a 64-bit Linux download for their latest version either on their own site, or at AMO.

What they do offer for 64-bit users (of Linux, or Windows for that matter) is a source code tar-ball and a some build instructions. The build instructions require you to first build part of Thunderbird before tackling Enigmail. Seems like a lot of effort to expect your average Joe-user to spend.

I spent that effort anyway, and here is what I did:

First, download any packages required to build Thunderbird:

$ sudo apt-get build-dep thunderbird

Then, make a new directory somewhere, download the Thunderbird source and build it:

$ mkdir foo
$ cd foo
$ apt-get -b source thunderbird

This will take a while. Really. Go and make a cup of tea.

When it’s done, you need to download Enigmail and unpack it in to the right place. Note that your “thunderbird-2.0.0.17+nobinonly” directory might be called something slightly different. Also note that I’m using Enigmail 0.95.7, but you should check for the latest version.

$ cd thunderbird-2.0.0.17+nobinonly/build-tree/mozilla/mailnews/extensions
$ wget http://www.mozilla-enigmail.org/download/source/enigmail-0.95.7.tar.gz
$ tar -zxvf enigmail-0.95.7.tar.gz

Next, you need to create a config file:

$ cd ../..
$ echo . $topsrcdir/mail/config/mozconfig > .mozconfig
$ echo ac_add_options --disable-tests >> .mozconfig
$ echo ac_add_options --disable-debug >> .mozconfig
$ echo ac_add_options --enable-crypto >> .mozconfig
$ echo ac_add_options --enable-optimize >> .mozconfig
$ echo ac_add_options --enable-static-mail >> .mozconfig
$ echo ac_add_options --enable-application=mail >> .mozconfig
$ echo mk_add_options MOZ_CO_PROJECT=mail >> .mozconfig

Then build Enigmail and make an XPI:

$ cd mailnews/extensions/enigmail
$ ./makemake -r
$ make
$ make xpi
$ cd ../../../dist/bin

The resulting XPI file is stored in the “dist/bin” directory you’re now in. To install the extension, you have fire-up Thunderbird, go to Tools->Add-ons->Extensions, click “Install…” and go and find it.

No Comments

Leave a comment