2009-11-02 18:25:04 +01:00
|
|
|
Build and install instructions for Notmuch.
|
|
|
|
|
|
|
|
Compilation commands
|
|
|
|
--------------------
|
|
|
|
The process for compiling and installing Notmuch is the very standard
|
|
|
|
sequence of:
|
|
|
|
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2010-03-09 21:11:47 +01:00
|
|
|
In fact, if you don't plan to pass any arguments to the configure
|
|
|
|
script, then you can skip that step and just start with "make", (which
|
|
|
|
will call configure for you). See this command:
|
|
|
|
|
|
|
|
./configure --help
|
|
|
|
|
|
|
|
for detailed documentation of the things you can control at the
|
|
|
|
configure stage.
|
2009-11-02 18:25:04 +01:00
|
|
|
|
|
|
|
Dependencies
|
|
|
|
------------
|
2015-08-16 17:33:21 +02:00
|
|
|
Notmuch depends on four libraries: Xapian, GMime 2.6,
|
2014-03-29 02:14:51 +01:00
|
|
|
Talloc, and zlib which are each described below:
|
2009-11-02 18:25:04 +01:00
|
|
|
|
|
|
|
Xapian
|
|
|
|
------
|
|
|
|
Xapian is the search-engine library underlying Notmuch.
|
|
|
|
|
|
|
|
It provides all the real machinery of indexing and searching,
|
|
|
|
(including the very nice parsing of the query string).
|
|
|
|
|
2016-06-02 18:26:14 +02:00
|
|
|
Xapian is available from https://xapian.org
|
2009-11-02 18:25:04 +01:00
|
|
|
|
2010-06-01 19:42:43 +02:00
|
|
|
Note: Notmuch will work best with Xapian 1.0.18 (or later) or
|
|
|
|
Xapian 1.1.4 (or later). Previous versions of Xapian (whether
|
|
|
|
1.0 or 1.1) had a performance bug that made notmuch very slow
|
|
|
|
when modifying tags. This would cause distracting pauses when
|
|
|
|
reading mail while notmuch would wait for Xapian when removing
|
|
|
|
the "inbox" and "unread" tags from messages in a thread.
|
2009-11-21 19:52:06 +01:00
|
|
|
|
2017-12-09 02:01:17 +01:00
|
|
|
GMime
|
|
|
|
-----
|
2012-01-20 10:39:25 +01:00
|
|
|
GMime provides decoding of MIME email messages for Notmuch.
|
2009-11-02 18:25:04 +01:00
|
|
|
|
|
|
|
Without GMime, Notmuch would not be able to extract and index
|
|
|
|
the actual text from email message encoded as BASE64, etc.
|
|
|
|
|
2018-04-29 10:35:30 +02:00
|
|
|
GMime is available from https://github.com/jstedfast/gmime
|
2009-11-02 18:25:04 +01:00
|
|
|
|
|
|
|
Talloc
|
|
|
|
------
|
|
|
|
Talloc is a memory-pool allocator used by Notmuch.
|
|
|
|
|
|
|
|
Talloc is an extremely lightweight and easy-to-use tool for
|
|
|
|
allocating memory in a hierarchical fashion and then freeing
|
|
|
|
it with a single call of the top-level handle. Using it has
|
|
|
|
made development of Notmuch much easier and much less prone to
|
|
|
|
memory leaks.
|
|
|
|
|
2016-06-02 18:26:14 +02:00
|
|
|
Talloc is available from https://talloc.samba.org/
|
2009-11-02 18:25:04 +01:00
|
|
|
|
2014-03-29 02:14:51 +01:00
|
|
|
zlib
|
|
|
|
----
|
|
|
|
|
|
|
|
zlib is an extremely popular compression library. It is used
|
|
|
|
by Xapian, so if you installed that you will already have
|
|
|
|
zlib. You may need to install the zlib headers separately.
|
|
|
|
|
|
|
|
Notmuch needs the transparent write feature of zlib introduced
|
|
|
|
in version 1.2.5.2 (Dec. 2011).
|
|
|
|
|
2018-04-29 10:35:30 +02:00
|
|
|
zlib is available from https://zlib.net
|
2014-03-29 02:14:51 +01:00
|
|
|
|
2014-01-28 17:12:37 +01:00
|
|
|
Building Documentation
|
|
|
|
----------------------
|
|
|
|
|
2015-01-18 17:55:10 +01:00
|
|
|
To build the documentation for notmuch you need at least version 1.0
|
|
|
|
of sphinx (Jul. 2010).
|
2014-01-28 17:12:37 +01:00
|
|
|
|
|
|
|
Sphinx is available from www.sphinx-doc.org.
|
|
|
|
|
|
|
|
Installing Dependencies from Packages
|
|
|
|
-------------------------------------
|
|
|
|
|
2010-03-09 21:12:32 +01:00
|
|
|
On a modern, package-based operating system you can install all of the
|
2018-01-13 01:48:22 +01:00
|
|
|
dependencies with a single simple command line. For example:
|
2010-03-09 21:12:32 +01:00
|
|
|
|
|
|
|
For Debian and similar:
|
2009-11-02 18:25:04 +01:00
|
|
|
|
2018-01-10 17:14:51 +01:00
|
|
|
sudo apt-get install libxapian-dev libgmime-3.0-dev libtalloc-dev zlib1g-dev python3-sphinx
|
2009-11-02 18:25:04 +01:00
|
|
|
|
2010-03-09 21:12:32 +01:00
|
|
|
For Fedora and similar:
|
2009-11-02 18:25:04 +01:00
|
|
|
|
2018-01-10 17:14:51 +01:00
|
|
|
sudo yum install xapian-core-devel gmime-devel libtalloc-devel zlib-devel python3-sphinx
|
2010-03-09 21:12:32 +01:00
|
|
|
|
|
|
|
On other systems, a similar command can be used, but the details of
|
|
|
|
the package names may be different.
|
2009-11-02 18:25:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
|