Next: , Previous: , Up: Getting started   [Contents]


2.2 Installation

mu4e is part of mu - by installing the latter, the former is installed as well. Some Linux distributions provide packaged versions of mu/mu4e; if you can use those, there is no need to compile anything yourself. However, if there are no packages for your distribution, if they are outdated, or if you want to use the latest development versions, you can follow the steps below.

First, you need make sure you have the necessary dependencies; the details depend on your distribution. If you’re using another distribution (or another OS), the below at least be helpful in identifying the packages to install.

We provide some instructions for Debian, Ubuntu and Fedora; if those do not apply to you, you can follow either Building from a release tarball or Building from git.

2.2.1 Dependencies for Debian/Ubuntu

$ sudo apt-get install libgmime-2.6-dev libxapian-dev
# if libgmime-2.6-dev is not available, try libgmime-2.4-dev

# get emacs 23 or 24 if you don't have it yet
$ sudo apt-get install emacs24

# optional
$ sudo apt-get install guile-2.0-dev html2text xdg-utils

# optional: only needed for msg2pdf and mug (toy gtk+ frontend)
$ sudo apt-get install libwebkit-dev

2.2.2 Dependencies for Fedora

$ sudo yum install gmime-devel xapian-core-devel

# get emacs 23 or 24 if you don't have it yet
$ sudo yum install emacs

# optional
$ sudo yum install html2text xdg-utils

# optional: only needed for msg2pdf and mug (toy gtk+ frontend)
$ sudo yum install webkitgtk3-devel

2.2.3 Building from a release tarball

Using a release-tarball (as available from GoogleCode14, installation follows the typical steps:

$ tar xvfz mu-<version>.tar.gz  # use the specific version
$ cd mu-<version>
# On the BSDs: use gmake instead of make
$ ./configure && make
$ sudo make install

Xapian, GMime and their dependencies must be installed.

2.2.4 Building from git

Alternatively, if you build from the git repository or use a tarball like the ones that github produces, the instructions are slightly different, and require you to have autotools (Autoconf, Automake, Libtool, and friends) installed:

# get from git (alternatively, use a github tarball)
$ git clone git://github.com/djcb/mu.git

$ cd mu
$ autoreconf -i && ./configure && make
# On the BSDs: use gmake instead of make
$ sudo make install

(Xapian, GMime and their dependencies must be installed).

After this, mu and mu4e should be installed 15 on your system, and be available from the command line in emacs.

You may need to restart emacs, so it can find mu4e in its load-path. If, even after restarting, emacs cannot find mu4e, you may need to add it to your load-path explicitly; check where mu4e is installed, and add something like the following to your configuration before trying again:

;; the exact path may differ -- check it
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")

2.2.5 mu4e and emacs customization

There is some support for using the emacs customization system in mu4e, but for now, we recommend setting the values manually. Please refer to Example configurations for a couple of examples of this; here we go through things step-by-step.


Footnotes

(14)

http://code.google.com/p/mu0/downloads/list

(15)

there’s a hard dependency between versions of mu4e and mu - you cannot combine different versions


Next: , Previous: , Up: Getting started   [Contents]