Linux HOWTOs

About | Home | Search


HOWTO: libsvg-cairo
Description: A library for rendering SVG documents
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


# libsvg-cairo 0.1.6
# ==================
# Prerequisites:
# gawk
# sed
# grep
# XFree86 or X.org
# pkg-config
# libsvg >= 0.1.2
# cairo >= 0.5.0

cd
test -f installed/libsvg-cairo-0.1.6.tar.gz &&
 mv installed/libsvg-cairo-0.1.6.tar.gz .
test ! -f libsvg-cairo-0.1.6.tar.gz &&
 wget http://cairographics.org/snapshots/libsvg-cairo-0.1.6.tar.gz

# Verify tarball w/ md5sum:
echo "d79da7b3a60ad8c8e4b902c9b3563047  libsvg-cairo-0.1.6.tar.gz" | \
 md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libsvg-cairo-*" -exec rm -r {} \;
tar xzvf ~/libsvg-cairo-0.1.6.tar.gz
cd libsvg-cairo-0.1.6
test $UID = 0 && chown -R root:root .
find -type f -exec chmod 644 {} \;
chmod 755 configure
./configure
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/libsvg-cairo-*.tar.*
mv libsvg-cairo-0.1.6.tar.gz installed/


# If you ever want to uninstall libsvg-cairo, this should do it:
cd
su
test -d src/libsvg-cairo-* && ( cd src/libsvg-cairo-* ; make uninstall )
rm -f /usr/local/include/svg-cairo.h /usr/local/lib/libsvg-cairo.* \
 /usr/local/lib/pkgconfig/libsvg-cairo.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libsvg-cairo-*" -exec rm -r {} \;
rm -f ~/installed/libsvg-cairo-*.tar.*

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>