Linux HOWTOs

About | Home | Search


HOWTO: libgtkhtml-3
Description: Lightweight HTML rendering/printing/editing engine
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


# libgtkhtml-3
# ============
# This one is libgtkhtml-3.x  The libgtkhtml that comes with Slackware 9.0
# and up is libgtkhtml-2.x  Some things that use this one are:
# Evolution
# GTK# (gtk-sharp)
# Gnome
# Certainly there are others, but those are the ones that I use...

# If you want to uninstall libgtkhtml, cd into the source directory, run
# 'make uninstall' (as root), remove the source directory, then remove the
# tarball.

# The 3.0.x version uses "3.0" as it's version for installation directories,
# the pkgconfig file, etc.  The 3.1.x and 3.2.x versions both use "3.1"  So,
# you can probably get 3.0.x and one of the other ones to co-exist, but you
# can't have 3.1.x and 3.2.x installed at the same time.  The 3.8.x version
# uses 3.8 for everything.

# Prerequisites (for all versions):

# Install/update the XML::Parser perl module:
su -c "perl -MCPAN -e shell"
o conf prerequisites_policy follow
o conf make_install_arg UNINST=1
install Bundle::CPAN
install XML::Parser
exit


# libgtkhtml 3.8.2 (bundled with Gnome 2.12.x)
# ================
# Prerequisites (beyond those listed above):
# intltool >= 0.30
# Perl
# iconv
# gettext
# pkg-config
# gail >= 1.1.0
# libgnomeui-2.0 >= 2.0.0
# libgnomeprintui-2.2 >= 2.2.1
# libglade-2.0 >= 2.0.0
# libbonoboui-2.0 >= 2.2.4
# libsoup-2.2 >= 2.1.6
# gnome-icon-theme >= 1.2.0

cd
test -f installed/gtkhtml-3.8.2.tar.bz2 &&
 mv installed/gtkhtml-3.8.2.tar.bz2 .
test ! -f gtkhtml-3.8.2.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/gtkhtml/3.8/\
gtkhtml-3.8.2.tar.bz2

# Verify tarball w/ md5sum:
echo "4455e24142cc914f00f1e8b81940df68  gtkhtml-3.8.2.tar.bz2" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gtkhtml-3.8.*" -exec rm -r {} \;
tar xjvf ~/gtkhtml-3.8.2.tar.bz2
cd gtkhtml-3.8.2
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib

## If make fails with an error like this:
# ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib

make

# Become root to install it
su

rm -f /usr/lib/libgtkhtml-3.8.*
make install
ldconfig
find /usr/share/locale -type f -name "gtkhtml-3.8.mo" -exec rm {} \;
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gtkhtml-3.1.*.tar.*
mv gtkhtml-3.8.2.tar.bz2 installed/



# libgtkhtml 3.10.3 (bundled with Gnome 2.14.x)
# =================
# Prerequisites (beyond those listed above):
# intltool >= 0.30
# Perl
# iconv
# gettext
# pkg-config
# gail >= 1.1.0
# libgnomeui-2.0 >= 2.0.0
# libgnomeprintui-2.2 >= 2.2.1
# libglade-2.0 >= 2.0.0
# libbonoboui-2.0 >= 2.2.4
# libsoup-2.2 >= 2.1.6
# gnome-icon-theme >= 1.2.0

cd
test -f installed/gtkhtml-3.8.2.tar.bz2 &&
 mv installed/gtkhtml-3.8.2.tar.bz2 .
test ! -f gtkhtml-3.8.2.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/gtkhtml/3.8/\
gtkhtml-3.8.2.tar.bz2

# Verify tarball w/ md5sum:
echo "4455e24142cc914f00f1e8b81940df68  gtkhtml-3.8.2.tar.bz2" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gtkhtml-3.8.*" -exec rm -r {} \;
tar xjvf ~/gtkhtml-3.8.2.tar.bz2
cd gtkhtml-3.8.2
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib

## If make fails with an error like this:
# ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib

make

# Become root to install it
su

rm -f /usr/lib/libgtkhtml-3.8.*
make install
ldconfig
find /usr/share/locale -type f -name "gtkhtml-3.8.mo" -exec rm {} \;
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gtkhtml-3.1.*.tar.*
mv gtkhtml-3.8.2.tar.bz2 installed/


# libgtkhtml 3.12.2 (bundled with Gnome 2.16.x)
# =================
# Prerequisites (beyond those listed above):
!# intltool >= 0.35
# Perl
# iconv
# gettext
# pkg-config
# gail >= 1.1.0
# libgnomeui-2.0 >= 2.0.0
# libgnomeprintui-2.2 >= 2.2.1
# libglade-2.0 >= 2.0.0
# libbonoboui-2.0 >= 2.2.4
# libsoup-2.2 >= 2.1.6
# gnome-icon-theme >= 1.2.0

cd
test -f installed/gtkhtml-3.12.2.tar.bz2 &&
 mv installed/gtkhtml-3.12.2.tar.bz2 .
test ! -f gtkhtml-3.12.2.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/gtkhtml/3.12/\
gtkhtml-3.12.2.tar.bz2

# Verify tarball w/ md5sum:
echo "8c943647fd26cf4594b2e97055e22584  gtkhtml-3.12.2.tar.bz2" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gtkhtml-3.8.*" -exec rm -r {} \;
tar xjvf ~/gtkhtml-3.12.2.tar.bz2
cd gtkhtml-3.12.2
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib

## If make fails with an error like this:
# ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib

make

# Become root to install it
su

rm -f /usr/lib/libgtkhtml-3.8.*
make install
ldconfig
find /usr/share/locale -type f -name "gtkhtml-3.8.mo" -exec rm {} \;
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/gtkhtml-3.1.*.tar.*
mv gtkhtml-3.12.2.tar.bz2 installed/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>