Linux HOWTOs

About | Home | Search


HOWTO: enchant
Description: A generic spell checking library, sort of, but not really
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# enchant 1.2.1
# =============
# Prerequisites:
# gawk
# grep
# sed
# pkg-config
# glib >= 2.0
# myspell (I haven't tried it; grab it here)
# aspell/pspell (optional)
# ispell (optional)
# uspell >= 1.1.0 (optional)
# hspell (optional; and I don't think support for it is done yet)

cd
test -f installed/enchant-1.2.1.tar.gz && mv installed/enchant-1.2.1.tar.gz .
test ! -f enchant-1.2.1.tar.gz &&
 wget http://www.abisource.com/downloads/enchant/1.2.1/enchant-1.2.1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "enchant-*" -exec rm -r {} \;
tar xzvf ~/enchant-1.2.1.tar.gz
cd enchant-1.2.1
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

rm -f /usr/local/lib/libenchant.*
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/enchant-*.tar.*
mv enchant-1.2.1.tar.gz installed/


# If you ever want to uninstall enchant, this should do it:
cd
su
test -d src/enchant-* && ( cd src/enchant-* ; make uninstall )
( cd /usr/local/bin ; rm -f enchant enchant-lsmod )
rm -f /usr/local/lib/libenchant.* /usr/local/man/man1/enchant.1 \
 /usr/local/lib/pkgconfig/enchant.pc
test -d /usr/local/include/enchant && rm -r /usr/local/include/enchant
test -d /usr/local/lib/enchant && rm -r /usr/local/lib/enchant
test -d /usr/local/share/enchant && rm -r /usr/local/share/enchant
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "enchant-*" -exec rm -r {} \;
rm -f ~/installed/enchant-*.tar.*

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>