# If you ever want to uninstall libtiff, or clean out files from an old
# version before installing a new one, skip down to the bottom for
# instructions
# Also, be aware that if you go from an old version that uses (for example)
# libtiff.so.1 as a shared library name and you upgrade to one that uses
# libtiff.so.2, if you remove the old one, any apps that are linked with
# it will fail to run. Creating a symlink from .1 to .2 may fix it,
# leaving the old one there may allow things to continue to work too. The
# best bet would be to rebuild and reinstall anything linked with libtiff's
# shared library.
# Get the source tarball
cd
test -f installed/tiff-4.6.0.tar.xz && mv installed/tiff-4.6.0.tar.xz .
test ! -f tiff-4.6.0.tar.xz &&
wget https://download.osgeo.org/libtiff/tiff-4.6.0.tar.xz
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "tiff-*" -exec rm -r {} \;
tar xJvf ~/tiff-4.6.0.tar.xz
cd tiff-4.6.0
test $UID = 0 && chown -R root:root .
# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --libdir=/usr/lib64
# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr
# Build it
make
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libtiff
# You may, or may not, want to clean up old files from previously installed
# versions, if you did not remove all of them below before you started.
# Note: you may also find a libtiff and libtiffxx from the aaa_elflibs
# package. Use lsof to see if anything running as a daemon or GUI based
# app is linked with libtiff.