Note: This solution does not apply to Doom Emacs and should probably be under a much more general question, but this is what solved my emacs upgrade error which complained about libtiff.so.5:
Wow! I performed an upgrade against emacs-gtk and met this error. Applying the accepted solution, proved that this error was only the tip of the ice-burgh. So I did this:
- Remove emacs via apt-get purge emacs*
- Remove any executable that appears in emacs code completion.
- Download, compile, and install emacs from source.
It is unusual that I download any emacs Debian package, but I performed a hurried install last time around when I installed emacs-gtk.
Long ago, I created a routine to compile emacs because it enables emacs automated help to display corresponding source code even if C.
zDir=$(dirname -- "${BASH_SOURCE[0]}")
zSource="$zDir/emacs"
if [[ -d "$zSource" ]]; then
cd "$zSource"
git pull --rebase # should I use --rebase?
else
cd "$zDir" || exit 1
git clone https://salsa.debian.org/rlb/deb-emacs.git "$zSource"
cd "$zSource" || exit 1
fi
# emacs is deeply connected to x
sudo apt-get -y build-dep emacs-gtk
./autogen.sh # create configure+x according to configure.ac
./configure # create Makefile according to Makefile.in
# existing files are not removed by git pull pull --rebase
# make clean does not remove old .elc files which will case make to fail
# find "$zSource" -name '*.elc' -exec sudo rm '{}' +
make
sudo make install # did this instead of make-dist and it worked
cd -