Linux HOWTOs

About | Home | Search


HOWTO: libots
Description: A library and commandline tool for summarizing texts
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


# libots 0.4.2
# ============
# Prerequisites:
# gawk
# sed
# pkg-config
# glib >= 2.0
# libxml >= 2.0
# popt

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

## If make fails with an error like this:
# /usr/bin/openjade:../ots-docs.sgml:41:6:E: end tag for "PART" which is not
# finished
## Run 'make -i' in the doc subdirectory to ignore the error.  You'll
## probably be missing some docs, but that's it.
( cd doc ; make -i )

make

# Become root to install it
su

rm -f /usr/local/lib/libots-1.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/ots-*.tar.*
mv ots-0.4.2.tar.gz installed/

Back to the list


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