cgilib - Library that provides an interface to CGI (common gateway interface) ChangeLog

HOWTO


# cgilib 0.7
# ==========
# Prerequisites:
# autoconf (if you run autoreconf below)
# automake 1.10
# libtool (if you run autoreconf below)

# Get it
cd
test -f installed/cgilib-0.7.tar.gz &&
mv installed/cgilib-0.7.tar.gz .
test ! -f cgilib-0.7.tar.gz &&
wget http://www.infodrom.org/projects/cgilib/download/cgilib-0.7.tar.gz

# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cgilib-*" -exec rm -r {} \;
tar xzvf ~/cgilib-0.7.tar.gz
cd cgilib-0.7
test $UID = 0 && chown -R root:root .

# I was unable to build it this last time until I ran this:
# (autoreconf is part of autoconf, it will run automake, libtool, etc.)
touch ./NEWS
autoreconf -f -i

# Configure and build it
./configure --mandir=/usr/local/man
make

# Become root to install it
su

# Removed old shared library files, install the new version
rm -f /usr/local/lib/libcgi.*
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/cgilib-*.tar.*
mv cgilib-0.7.tar.gz installed/


# If you ever want to uninstall cgilib, this should do it:
cd
su
test -d src/cgilib-* && ( cd src/cgilib-* ; make uninstall )
( cd /usr/local/bin ; rm -f cgitest jumpto )
( cd /usr/local/include ; rm -f aux.h cgi.h )
( cd /usr/local/man/man3
  rm -f cgiDebug.3 cgiEscape.3 cgiFree.3 cgiFreeList.3 cgiGetCookie.3 \
   cgiGetCookies.3 cgiGetFile.3 cgiGetFiles.3 cgiGetValue.3 \
   cgiGetVariables.3 cgiHeader.3 cgiInit.3 cgiRedirect.3 cgiSetHeader.3 \
   cgiSetType.3 )
rm -f /usr/local/lib/libcgi.* /usr/local/man/man5/cgi.5
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "cgilib-*" -exec rm -r {} \;
rm -f ~/installed/cgilib-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2012-03-16 11:49pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]