Linux HOWTOs

About | Home | Search


HOWTO: libwpd
Description: Library for importing and exporting WordPerfect (tm) 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


# libwpd
# ======
# 0.8.6 is the latest version.  Before 0.8.x was: 0.7.2, 0.7.0, and 0.6.6
# I also include 0.6.6 here for things that use libwpd, but don't support
# the latest version.

# Prerequisites (both versions):
# gawk
# sed
# grep
# pkg-config
# glib-2.0 >= 2.0.0
# libgsf-1 >= 1.6.0


# libwpd 0.8.6
# ============
# Prerequisites:
# doxygen

cd
test -f installed/libwpd-0.8.6.tar.gz && mv installed/libwpd-0.8.6.tar.gz .
test ! -f libwpd-0.8.6.tar.gz &&
 wget http://download.sf.net/libwpd/libwpd-0.8.6.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libwpd-*" -exec rm -r {} \;
tar xzvf ~/libwpd-0.8.6.tar.gz
cd libwpd-0.8.6
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make 

# Become root to install it
su

rm -f /usr/lib/libwpd-*
find /usr/include -maxdepth 1 -type d -name "libwpd-*" -exec rm -r {} \;
test -d /usr/include/libwpd-1 && rm -r /usr/include/libwpd-1
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libwpd-*.tar.*
mv libwpd-0.8.6.tar.gz installed/


# libwpd 0.6.6
# ============
cd
ntest -f installed/libwpd-0.6.6.tar.gz && mv installed/libwpd-0.6.6.tar.gz .
test ! -f libwpd-0.6.6.tar.gz &&
 wget http://download.sf.net/libwpd/libwpd-0.6.6.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libwpd-*" -exec rm -r {} \;
tar xzvf ~/libwpd-0.6.6.tar.gz
cd libwpd-0.6.6
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make 

# Become root to install it
su

rm -f /usr/lib/libwpd-1.*
test -d /usr/include/libwpd-1 && rm -r /usr/include/libwpd-1
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libwpd-*.tar.*
mv libwpd-0.6.6.tar.gz installed/

Back to the list


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