enchant - A library that wraps other spelling libraries and programs ChangeLog

HOWTO


# Enchant 2.6.3
# =============
# Prerequisites:
# pkg-config >= 0.9.0
# glib
# Hunspell (optional; based on MySpell)
# Nuspell (optional)
# GNU Aspell (optional)
# hspell (optional; Hebrew)
# Voikko (optional; Finnish)
# Zemberek (optional; Turkish)
# AppleSpell (optional; macOS)

# Add --enable-relocatable to the configure line if you want to be able to
# run 'make check' below

# ispell (optional)
# uspell >= 1.1.0 (optional)

# Get the source tarball
cd
test -f installed/enchant-2.6.3.tar.gz && mv installed/enchant-2.6.3.tar.gz .
test ! -f enchant-2.6.3.tar.gz &&
wget https://github.com/AbiWord/enchant/releases/download/v2.6.3/\
enchant-2.6.3.tar.gz

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "enchant-*" -exec rm -r {} \;
tar xzvf ~/enchant-2.6.3.tar.gz
cd enchant-2.6.3
test $UID = 0 && chown -R root:root .

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --docdir=/usr/doc/enchant --libdir=/usr/lib64 \
  --mandir=/usr/man

# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --docdir=/usr/doc/enchant --mandir=/usr/man

# Build it
make

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg enchant

# Install it
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+rwx .

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/enchant-*.tar.*
mv enchant-2.6.3.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 )
for pfx in /usr/local /usr;
do
  cd $pfx
  ( cd bin
    rm -f enchant enchant-2 enchant-lsmod enchant-lsmod-2 )
  test -d doc/enchant &&
   ( cd doc/enchant
     rm -f enchant.html enchant-2.html enchant-lsmod-2.html )
  test -d include/enchant && rm -r include/enchant
  test -d include/enchant2 && rm -r include/enchant2
  ( cd lib
    rm -f libenchant.* libenchant-2.* pkgconfig/enchant.pc \
     pkgconfig/enchant-2.pc
    test -d enchant && rm -r enchant
    test -d enchant-2 && rm -r enchant-2 )
  test -d lib64 &&
   ( cd lib64
     rm -f libenchant.* libenchant-2.* pkgconfig/enchant.pc \
      pkgconfig/enchant-2.pc
     test -d enchant && rm -r enchant
     test -d enchant-2 && rm -r enchant-2 )
  test -d share/enchant && rm -r share/enchant
  ( cd man/man1
    rm -f enchant.1 enchant-2.1 enchant-lsmod-2.1 )
  ( cd man/man5
    rm -f enchant.5 )
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "enchant-*" -exec rm -r {} \;
rm -f ~/installed/enchant-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2023-12-08 3:12pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]