Thursday, July 16, 2009

How to Compiling Thunderbird and Enigmail source code on Ubuntu

The build instructions require you to first build part of Thunderbird before compile Enigmail.

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

First, download any packages required to build Thunderbird:

Qoute : $ sudo apt-get build-dep thunderbird
Quote : $sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev

Then, make a new directory somewhere, download the Thunderbird source and build it:
Qoute : $ mkdir proj
Qoute : $ cd proj
Qoute : $ sudo 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.

Qoute : $ cd thunderbird-2.0.0.17+nobinonly/build-tree/mozilla/mailnews/extensions
Qoute : $ wget http://www.mozilla-enigmail.org/download/source/enigmail-0.95.7.tar.gz
or you just download direct from Engimail website
Qoute : $ tar -zxvf enigmail-0.95.7.tar.gz

Next, you need to create a config file:

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

Then build Enigmail and make an XPI:

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

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.

Tq http://www.waxworlds.org/

Enjoy ubuntu... ;)

No comments:

kunkun-laptop .... ;)