What are the dependencies for compiling Xapian under Ubuntu?

Building from a tarball

If compiling from a tarball, you can usually get most of the dependencies for xapian-core installed simply by running:

apt-get build-dep libxapian-dev

Similarly, to get the dependencies for the python bindings, run:

apt-get build-dep python-xapian

(Note that this will also pull in the dependencies for the tcl and php bindings, since these are built from the same source package).

There are no additional dependencies for "omega", but you might want to install the list of suggested packages for omega to enable indexing of all the supported file types. You can get this list by running:

apt-cache show xapian-omega|grep ^Suggests:

Building from SVN

To build from an SVN checkout, you will need the above dependencies, but may also need some additional tools. The SVN checkout includes a copy of swig, and automatically downloads a copy of the appropriate versions of automake, autoconf and libtool. However, you will need to install the m4 macro processor. Also, you will either need to configure with --disable-documentation, or install the set of packages required for building the documentation. You might also need to install some additional packages, if dependencies have been added to SVN since the release of the packages shipped with your release of Ubuntu.

At the time of writing, the necessary command if you disable building of the documentation is:

apt-get install m4 uuid-dev

To get the tools needed for building the documentation (on Ubuntu hardy):

apt-get install doxygen graphviz ghostscript texlive-latex-base texlive-extra-utils texlive-base-bin help2man python-docutils pngcrush

(Note - please update this page if you find that these requirements are out-of-date.)

FAQ Index