Linux HOWTOs

About | Home | Search


HOWTO: libcroco
Description: CSS2 parsing and manipulation 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


# libcroco
# ========
# Slackware 10.0 and 10.1's 'libcroco' packages include version 0.5.1
# As of Slackware 10.2, Gnome is no longer included (and neither is
# libcroco).

# If you want to uninstall libcroco, or clean up files from an old version
# before installing a new one, cd into the source directory, run 'make
# uninstall', remove the source directory, then remove the tarball.

# I include several versions below to cover different Gnome releases
# (certain libraries require a certain version of libcroco).

# Prerequisites:
# grep
# sed
# pkg-config
# glib-2.0 >= 2.0
# libxml-2.0 >= 2.4.23


# libcroco 0.5.1
# ==============
cd
test -f installed/libcroco-0.5.1.tar.bz2 &&
 mv installed/libcroco-0.5.1.tar.bz2 .
test ! -f libcroco-0.5.1.tar.bz2 &&
 wget ftp://ftp.gnome.org/pub/GNOME/sources/libcroco/0.5/libcroco-0.5.1.tar.bz2

# Verify tarball w/ md5sum:
echo "19e016a5533449a769662a116df7237c  libcroco-0.5.1.tar.bz2" | md5sum -c

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

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libcroco
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libcroco-*.tar.*
mv libcroco-0.5.1.tar.bz2 installed/


# libcroco 0.6.1
# ==============
cd
test -f installed/libcroco-0.6.1.tar.bz2 &&
 mv installed/libcroco-0.6.1.tar.bz2 .
test ! -f libcroco-0.6.1.tar.bz2 &&
 wget ftp://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/\
libcroco-0.6.1.tar.bz2

# Verify tarball w/ md5sum:
echo "b0975bd01eb11964f1b3f254f267a43d  libcroco-0.6.1.tar.bz2" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libcroco-*" -exec rm -r {} \;
tar xjvf ~/libcroco-0.6.1.tar.bz2
cd libcroco-0.6.1
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
 --disable-static
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libcroco
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libcroco-*.tar.*
mv libcroco-0.6.1.tar.bz2 installed/

Back to the list


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