Linux HOWTOs

About | Home | Search


HOWTO: pth
Description: Portable threads 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


# GNU Portable Threads 2.0.7
# ==========================
# If you ever want to uninstall Pth or clean up files from an old version
# before installing a new one, skip down to the bottom for instructions

cd
test -f installed/pth-2.0.7.tar.gz && mv installed/pth-2.0.7.tar.gz .
test ! -f pth-2.0.7.tar.gz &&
 wget ftp://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "pth-*" -exec rm -r {} \;
tar xzvf ~/pth-2.0.7.tar.gz
cd pth-2.0.7
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure
make
make test

# Become root to install it
su

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

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/pth-*.tar.*
mv pth-2.0.7.tar.gz installed/


# If you ever want to uninstall Pth, this should do it:
cd
su
test -d src/pth-* && ( cd src/pth-* ; make uninstall )
rm -f /usr/local/bin/pth-config \
 /usr/local/include/pth.h /usr/local/lib/libpth.* \
 /usr/local/man/man1/pth-config.1 /usr/local/man/man3/pth.3 \
 /usr/local/share/aclocal/pth.m4
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "pth-*" -exec rm -r {} \;
rm -f ~/installed/pth-*.tar.*

Back to the list


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