Linux HOWTOs

About | Home | Search


HOWTO: libgsf
Description: Gnome structured file 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


# libgsf
# ======
# Slackware 8.1 didn't include a 'libgsf' package, 9.0's includes version
# 1.7.2, 9.1's includes 1.8.2, 10.0, 10.1's include 1.9.1, and 10.2's
# includes 1.12.1

# I include the latest 1.11.x, 1.12.x, 1.13.x, and 1.14.x releases below,
# just in case someone needs the older version or you don't have all of the
# prerequisites for the newest one.

# If you ever want to uninstall libgsf, or just clean up files from
# an old version before installing a new one, cd into the source directory
# and run 'make uninstall' (as root).

# Prerequisites (for both versions):
# gawk
# sed
# grep
# glib-2.0 >= 2.0.0
# libxml2-2.0 >= 2.4.16
# zlib
# bzip2

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


# libgsf 1.11.1
# =============
# Prerequisites:
# pkg-config
# glib-2.0 >= 2.0.0
# libbonobo >= 2.0.0 (not required if you add --without-gnome)
# gnome-vfs-2.0 >= 2.2.0 (not required if you add --without-gnome)

# If you're building libgsf for something like wv2 and you don't have
# Gnome (or X) installed, you can add --without-gnome to the configure
# line below to skip building in bonobo and gnome-vfs (which you won't have).

cd
test -f installed/libgsf-1.11.1.tar.bz2 &&
 mv installed/libgsf-1.11.1.tar.bz2 .
test ! -f libgsf-1.11.1.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libgsf/1.11/\
libgsf-1.11.1.tar.bz2

# Verify tarball w/ md5sum:
echo "b6d867f46e20dca5c6bf2cf3bfc38cfc  libgsf-1.11.1.tar.bz2" | md5sum -c

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

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libgsf
rm -f /usr/lib/libgsf-1.* /usr/lib/libgsf-gnome-1.*
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgsf-*.tar.*
mv libgsf-1.11.1.tar.bz2 installed/


# libgsf 1.12.3
# =============
# Prerequisites:
# pkg-config >= 0.9.0
# perl
# iconv
# gettext
# glib-2.0 >= 2.6.0
# libxml2-2.0 >= 2.4.16

cd
test -f installed/libgsf-1.12.3.tar.bz2 &&
 mv installed/libgsf-1.12.3.tar.bz2 .
test ! -f libgsf-1.12.3.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libgsf/1.12/\
libgsf-1.12.3.tar.bz2

# Verify tarball w/ md5sum:
echo "34b51119d5cbae30be0357ab246e93de  libgsf-1.12.3.tar.bz2" | md5sum -c

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

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libgsf
rm -f /usr/lib/libgsf-1.* /usr/lib/libgsf-gnome-1.*
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgsf-*.tar.*
mv libgsf-1.12.3.tar.bz2 installed/


# libgsf 1.13.3
# =============
# Prerequisites:
# pkg-config >= 0.9.0
# perl
# iconv
# gettext
# glib-2.0 >= 2.6.0
# libxml2-2.0 >= 2.4.16
# libbonobo (specify --without-gnome to skip)
# gnome-vfs (specify --without-gnome to skip)
# gconf (optional)

cd
test -f installed/libgsf-1.13.3.tar.bz2 &&
 mv installed/libgsf-1.13.3.tar.bz2 .
test ! -f libgsf-1.13.3.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libgsf/1.13/\
libgsf-1.13.3.tar.bz2

# Verify tarball w/ md5sum:
echo "b35e95f6bd7b8add9981b6cf6336674a  libgsf-1.13.3.tar.bz2" | md5sum -c

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

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libgsf
rm -f /usr/lib/libgsf-1.* /usr/lib/libgsf-gnome-1.*
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgsf-*.tar.*
mv libgsf-1.13.3.tar.bz2 installed/


# libgsf 1.14.1
# =============
# Prerequisites:
# pkg-config >= 0.9.0
# perl
# iconv
# gettext
# glib-2.0 >= 2.6.0
# libxml2-2.0 >= 2.4.16
# libbonobo (specify --without-gnome to skip)
# gnome-vfs (specify --without-gnome to skip)
# gconf (optional)

cd
test -f installed/libgsf-1.14.1.tar.bz2 &&
 mv installed/libgsf-1.14.1.tar.bz2 .
test ! -f libgsf-1.14.1.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libgsf/1.14/\
libgsf-1.14.1.tar.bz2

# Verify tarball w/ md5sum:
echo "00de00b99382d0b7e034e0fffd8951d4  libgsf-1.14.1.tar.bz2" | md5sum -c

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

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libgsf
rm -f /usr/lib/libgsf-1.* /usr/lib/libgsf-gnome-1.*
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgsf-*.tar.*
mv libgsf-1.14.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>