Retrieve AOLserver. Download the aolserver from CVS.
[root root]# cd /usr/local/src
[root src]# mkdir aolserver
[root src]# cd aolserver
[root /usr/local/src/aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co -r aolserver_v40_r2 aolserver
[root aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nscache
[root aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsrewrite
[root aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nspostgres
[root aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nssha1
[root aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsoracle
[root aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsxml
[root aolserver]# wget http://www.tdom.org/tDOM-0.7.8.tar.gz
[root aolserver]# tar xvfz tDOM-0.7.8.tar.gz
[root aolserver]#
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co -r aolserver_v40_r2 aolserver
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nscache
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsrewrite
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nspostgres
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nssha1
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsoracle
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsxml
wget http://www.tdom.org/tDOM-0.7.8.tar.gz
tar xvfz tDOM-0.7.8.tar.gz
Configure, compile and install AOLserver.
[root aolserver]# cd aolserver [root aolserver]# cd aolserver [root aolserver]# ./configure --with-tcl=/usr/local/lib/ [root aolserver]# make install
Configure, compile and install the modules.
[root /usr/local/src/aolserver/aolserver]# cd ../nscache [root /usr/local/src/aolserver/nscache]# make install
[root /usr/local/src/aolserver/nscache]# cd ../nsrewrite [root /usr/local/src/aolserver/nsrewrite]# make install
Install nsoracle (if you want to use Oracle)
[root /usr/local/src/aolserver/nscache]# cd ../nsoracle [root /usr/local/src/aolserver/nsrewrite]# make install
Steps so far
cd /usr/local/src/aolserver/
./configure --with-tcl=/usr/local/lib/
make install
cd ../nscache
make install
cd ../nsrewrite
make install
cd ../nsoracle
make install
Install nspostgres (if you want to use Postgres)
[root nsrewrite]# cd ../nspostgres [root nspostgres]# sudo make install POSTGRES=/usr/local/pgsql ACS=1
If you run into problems with libpq.a do the following (and repeat the step above)
[root nspostgres]# sudo ranlib /usr/local/pgsql/lib/libpq.a
If you run into problems with the linker, edit the Makefile. Add -lnsdb to the MODLIBS var.
MODLIBS = -L$(PGLIB) -lpq -lnsdb
[root nsrewrite]# cd ../nssha1 [root nssha1]# make
If the make fails you will have to edit nssha1.c. Comment out the following 2 lines (lines 139-140):
// typedef unsigned int u_int32_t; // typedef unsigned char u_int8_t;
Now install nssha1:
[root nssha1]# make install
[root nssha1]# cd ../tDOM-0.7.8/unix
Edit the CONFIG file. Uncomment the instructions meant for AOLserver 4, but edit it to look like this:
../configure --enable-threads --disable-tdomalloc --prefix=/usr/local/aolserver --with-tcl=/usr/local/lib
Now you can compile and configure tDOM
[root unix]# sh CONFIG [root unix]# make install