Introduction to enchant

The enchant package provide a generic interface into various existing spell checking libraries.

This package is known to build and work properly using an LFS-8.0 platform.

Package Information

enchant Dependencies





dbus-glib-0.108, Hspell, Hunspell, and Voikko

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/enchant

Installation of enchant

Install enchant by running the following commands:

./configure --prefix=/usr --disable-static &&

This package does not come with a test suite.

Now, as the root user:

make install

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

Configuring enchant

Config Files

~/.enchant and /usr/share/enchant/enchant.ordering

Configuration Information

If you wish to use the Aspell- backend, create a symlink, as the root user:

ln -svfn ../../lib/aspell /usr/share/enchant/aspell

You can test your installation and configuration by creating a test file and running the commands in the following (you can replace the en_GB dictionary by any other downloaded when installing Aspell-

cat > /tmp/test-enchant.txt << "EOF"
Tel me more abot linux
Ther ar so many commads

enchant -d en_GB -l /tmp/test-enchant.txt &&
enchant -d en_GB -a /tmp/test-enchant.txt

You will see a list of the misspelled words followed by a list of alternatives for them.

See more details in the enchant manual page.


Installed Programs: enchant and enchant-lsmod
Installed Libraries: libenchant.so and various backend libraries
Installed Directories: /usr/{include,lib,share}/enchant

Short Descriptions


is a spellchecker


lists available backends, languages, and dictionaries.


contains spell checking interface API functions.

Last updated on 2017-02-18 16:02:40 -0800