Compiling Enigmail on 64-bit Ubuntu

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.

11:37 pm, 16th October, 2008 — computing — 4 comments

comments feed trackback url

Comments

  • Camilo
    2nd May, 2009 at 4:19 pm
    reply
    permalink

    Thanks, everything works OK.

    Note: $ 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

    • edam
      1st July, 2009 at 2:19 pm
      reply
      permalink

      Thanks – fixed!

  • kunkun
    16th July, 2009 at 8:23 am
    reply
    permalink

    tq very much… very helpful

  • jay
    23rd January, 2010 at 3:08 am
    reply
    permalink

    Thank you kindly :)

Leave a Reply




Cancel Reply

    • Home
    • About Me
    • Photography
    • Software
      • Android
        • Import Contacts
        • How to install an APK on your Android device
      • General-purpose Makefile
      • Mozilla Stuff
      • sqlite3cc
  • Page Content

  • Categories
  • Archives
  • Links
    • Future Mowgli Project
  • Meta
    • log in
    • site feed

powered by WordPress and Gallery2   |   hosted at waxworlds.org   |   site design by edam