Linux HOWTOs

About | Home | Search


HOWTO: libxslt
Description: XSLT (XML conversion) library
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


# libxslt
# =======
# Slackware 8.1's 'libxslt' package includes version 1.0.18, 9.0's includes
# 1.0.27, 9.1's includes 1.0.33, 10.0's includes 1.1.6, 10.1's includes
# 1.1.12, 10.2's includes 1.1.15, and 11.0's includes 1.1.17

# There are two libxslt versions in this howto.  1.1.x, which is the latest,
# and 1.0.x which is the latest of the previous series - for those that
# need the older version for some reason.

# If you want python bindings, make sure libxml2 was built with
# --with-python

# If you're replacing a source installed libxslt that was installed under
# /usr/local, cd into it's source and run 'make uninstall' before proceeding
# here.  If you can't for some reason, run this to at least clear out the
# old shared library files and includes:
su
rm -f /usr/local/lib/libexslt.* /usr/local/lib/libxslt.* \
 /usr/local/lib/libxsltbreakpoint.*
test -d /usr/local/include/libxslt && rm -r /usr/local/include/libxslt
test -d /usr/local/include/libexslt && rm -r /usr/local/include/libexslt
exit

# Prerequisites (for both versions):
# Perl
# Python
# libxml2


# libxslt 1.0.33
# ==============
cd
test -f installed/libxslt-1.0.33.tar.bz2 &&
 mv installed/libxslt-1.0.33.tar.bz2 .
test ! -f libxslt-1.0.33.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/libxslt/1.0/\
libxslt-1.0.33.tar.bz2

# Verify tarball w/ md5sum:
echo "699e52b3eb862224d5f5b84c03f08676  libxslt-1.0.33.tar.bz2" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libxslt-*" -exec rm -r {} \;
tar xjvf ~/libxslt-1.0.33.tar.bz2
cd libxslt-1.0.33
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libxslt
( cd /usr/lib ; rm -f libexslt.so.* libxslt.so.* libxsltbreakpoint.so.* )
find /usr/doc -maxdepth 1 -type d -name "libxslt-*" -exec rm -r {} \;
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libxslt-*.tar.*
mv libxslt-1.0.33.tar.bz2 installed/


# libxslt 1.1.20
# ==============
# Prerequisites (beyond those listed above):
# tar
# libgcrypt (optional)

cd
test -f installed/libxslt-1.1.20.tar.bz2 &&
 mv installed/libxslt-1.1.20.tar.bz2 .
test ! -f libxslt-1.1.20.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/libxslt/1.1/\
libxslt-1.1.20.tar.bz2

# Verify tarball w/ md5sum:
echo "aa0b4817c38104d9a724ee12b81e286e  libxslt-1.1.20.tar.bz2" | md5sum -c

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

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libxslt
( cd /usr/lib ; rm -f libexslt.so.* libxslt.so.* libxsltbreakpoint.so.* )
find /usr/doc -maxdepth 1 -type d -name "libxslt-*" -exec rm -r {} \;
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libxslt-*.tar.*
mv libxslt-1.1.20.tar.bz2 installed/

Back to the list


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