# Links 2.2
# =========
# As of this version of this howto, we're using the /usr prefix
# for installation to match where Slackware's package puts it.
#
# If you are replacing an older version installed under /usr/local,
# or if you just want to clean up files from an older version, skip#
# down to the bottom for instructions.
# Prerequisites:
# pcre
# gpm (optional)
# pkg-config
# OpenSSL (if you want https:// support)
# SVGAlib (optional)
# DirectFB >= 0.9.17 (optional; for graphics mode)
# XFree86 or X.org (for graphics mode)
# SDL >= 1.2.0
# libpng (if you want to display png images)
# libjpeg (if you want to display jpeg images)
# libtiff (if you want to display tiff images)
cd
test -f installed/links-2.2.tar.bz2 &&
mv installed/links-2.2.tar.bz2 .
test ! -f links-2.2.tar.bz2 &&
wget http://links.twibright.com/download/links-2.2.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "links-*" -exec rm -r {} \;
tar xjvf ~/links-2.2.tar.bz2
cd links-2.2
test $UID = 0 && chown -R root:root .
# If you're installing it on a machine with only text-based console use
# (no GUI), you'll probably want to leave off --enable-javascript and
# --enable-graphics
./configure --prefix=/usr --sysconfdir=/etc \
--enable-javascript --enable-graphics
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg links
make install
# To use links the normal way, use it the normal way... :-)
# To use it in graphics mode, run links -g
# Note: you can use graphics/links.xpm as an icon in KDE/Gnome/whatever
# If you ever want to uninstall links, this should do it:
cd
su
test -d src/links-* && ( cd src/links-* ; make uninstall )
rm -f /usr/bin/links /usr/man/man1/links.1
exit
find ~/src -maxdepth 1 -type d -name "links-*" -exec rm -r {} \;
rm -f ~/installed/links-*.tar.*