Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: libgpg-error
Description: Library that defines common error values for GnuPG components
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


# libgpg-error 1.10
# =================
# Slackware 12.1, 12.2: libgpg-error 1.6
# Slackware 13.0, 13.1: libgpg-error 1.7
# Slackware 13.37: libgpg-error 1.9

# Prerequisites:
# gettext

cd
test -f installed/libgpg-error-1.10.tar.bz2 &&
 mv installed/libgpg-error-1.10.tar.bz2 .
test ! -f libgpg-error-1.10.tar.bz2 &&
 wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.bz2

# Verify tarball w/ md5sum:
# (this came from my sha1sum and gpg-verified tarball)
echo "736a03daa9dc5873047d4eb4a9c22a16  libgpg-error-1.10.tar.bz2" | md5sum -c

# Verify tarball w/ sha1sum:
echo "95b324359627fbcb762487ab6091afbe59823b29  libgpg-error-1.10.tar.bz2" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 1CE0C630 > /dev/null 2>&1 || gpg --recv-keys 1CE0C630 ) &&
 wget -nc ftp://ftp.gnupg.org/gcrypt/libgpg-error/\
libgpg-error-1.10.tar.bz2.sig &&
  gpg --verify libgpg-error-1.10.tar.bz2.sig &&
   rm libgpg-error-1.10.tar.bz2.sig

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

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libgpg-error

# Clean up shared library files from old versions
rm -f /usr/lib/libgpg-error.* /usr/local/lib/libgpg-error.*

# Install it
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgpg-error-*.tar.*
mv libgpg-error-1.10.tar.bz2 installed/


# If you ever want to uninstall libgpg-error, this should do it:
cd
su
test -d src/libgpg-error-* && ( cd src/libgpg-error-* ; make uninstall )
for pfx /usr /usr/local;
do
  ( cd ${pfx}/bin ; rm -f gpg-error gpg-error-config )
  rm -f ${pfx}/include/gpg-error.h ${pfx}/lib/libgpg-error.* \
   ${pfx}/share/aclocal/gpg-error.m4
  test -d ${pfx}/share/common-lisp/source/gpg-error &&
   rm -r ${pfx}/share/common-lisp/source/gpg-error
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libgpg-error-*" -exec rm -r {} \;
rm -f ~/installed/libgpg-error-*.tar.*

Back to the list


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