xapian-config command not found

In this troubleshooting guide we learn how to fix xapian-config command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xapian-config: command not found

or when using sudo you get the following error message

sudo: xapian-config: command not found

Solutions to xapian-config: command not found

How To Fix xapian-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xapian-config is provided by libxapian-dev package.

libxapian-dev is:

This package contains development libraries and headers for the core Xapian library.

The Xapian search engine library is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facilities to their own applications. It implements the probabilistic model of information retrieval, and provides facilities for performing ranked free-text searches, relevance feedback, phrase searching, boolean searching, stemming, and simultaneous update and searching. It is highly scalable, and is capable of working with collections containing hundreds of millions of documents.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libxapian-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libxapian-dev.

sudo apt -y install libxapian-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install libxapian-dev

Summary

In this tutorial we learn how to fix xapian-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.