enchant-2.2.5

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 9. General Libraries

- Prev

  dbus-glib-0.110

- Next

  Exempi-2.5.1

- Up
- Home

# enchant-2.2.5

## 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-9.0 platform.

### Package Information

- Download (HTTP): https://github.com/AbiWord/enchant/releases/download/v2.2.5/enchant-2.2.5.tar.gz

- Download MD5 sum: 0344871b4770c4f9f549b05734881f4e

- Download size: 932 KB

- Estimated disk space required: 7.4 MB

- Estimated build time: 0.2 SBU

### enchant Dependencies

#### Required

GLib-2.60.6

#### Recommended

Aspell-0.60.7

#### Optional

dbus-glib-0.110, Hspell, Hunspell, Voikko, and unittest-cpp (required for tests)

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

## Installation of enchant

Install enchant by running the following commands:

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

To run tests, unittest-cpp must be installed and the --enable-relocatable option passed to configure above. If these conditions are present, the tests may be run with make check.

Now, as the `root` user:

    make install                                   &&
    rm -rf /usr/include/enchant                    &&
    ln -sfv enchant-2       /usr/include/enchant   &&
    ln -sfv enchant-2       /usr/bin/enchant       &&
    ln -sfv libenchant-2.so /usr/lib/libenchant.so &&
    ln -sfv enchant-2.pc    /usr/lib/pkgconfig/enchant.pc

## Command Explanations

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

rm -rf /usr/include/enchant; ln -sfn ...: Create symlinks for this package version so that other other packages can find it using the old name.

## Configuring enchant

### Config Files

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

### Configuration Information

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-0.60.7):

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

    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.

## Contents

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

### Short Descriptions

enchant | is a spellchecker
enchant-lsmod-2 | lists available backends, languages, and dictionaries.
`libenchant.so` | contains spell checking interface API functions.

Last updated on 2019-08-21 12:33:09 -0700

- Prev

  dbus-glib-0.110

- Next

  Exempi-2.5.1

- Up
- Home