Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml,v diff -u -r1.1.2.7 -r1.1.2.8 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml 4 Feb 2004 16:57:16 -0000 1.1.2.7 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml 21 Feb 2004 07:05:13 -0000 1.1.2.8 @@ -12,22 +12,15 @@ by Malte Sussdorff - - (Debian users: we do not recommend installing Debian packages for - Aolserver or Postgres. Several people have - reported problems while trying to install using apt-get - instead of from source. If you have the time to debug these - and submit what you did, that's great, but if not, you - should stick to installing from source. - - Retrieve TCL 8.4 (or higher) Download and install TCL 8.4 If you have not installed TCL already, download the latest TCL version from Sourceforge + Remember that you have to be root if you want to follow these instructions. On Mac OS X type sudo su - to become root. +Alternatively use curl -L -O instead of wget (especially on Mac OS X. [root root]# cd /usr/local/src [root src]# wget http://heanet.dl.sourceforge.net/sourceforge/tcl/tcl8.4.5-src.tar.gz [root src]# tar xfz tcl8.4.5-src.tar.gz @@ -40,8 +33,7 @@ tar xfz tcl8.4.5-src.tar.gz cd tcl8.4.5/unix ./configure --enable-threads -make install - +make install @@ -50,11 +42,11 @@ Download the aolserver from CVS. [root root]# cd /usr/local/src -[root src]# mkdir aolserver -[root src]# cd aolserver +[root src]# mkdir aolserver40r2 +[root src]# cd aolserver40r2 +[root aolserver]# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver login [root 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 @@ -63,11 +55,10 @@ [root aolserver]# tar xvfz tDOM-0.7.8.tar.gz [root root]# cd /usr/local/src -mkdir aolserver -cd aolserver +mkdir aolserver40r2 +cd aolserver40r2 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 @@ -78,11 +69,17 @@ 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 + Many people need to run more than one version of AOLserver in parallel. This section accomodates future upgrades by installing AOLserver 4 in /usr/local/aolserver40r2. + [root aolserver]# cd /usr/local/src/aolserver40r2/aolserver +[root aolserver]# ./configure --prefix=/usr/local/aolserver40r2 --with-tcl=/usr/local/lib/ +[root aolserver]# make install + cd /usr/local/src/aolserver40r2/aolserver +./configure --with-tcl=/usr/local/lib/ +make install +ln -s /usr/local/aolserver40r2 /usr/local/aolserver + If this is the only version of AOLserver in use, or is the default version, create a symlink. If not, then be sure to use /usr/local/aolserver40r2 instead of /usr/local/aolserver in future steps. + [root aolserver]# ln -s /usr/local/aolserver40r2 /usr/local/aolserver @@ -91,35 +88,24 @@ Install nscache - [root /usr/local/src/aolserver/aolserver]# cd ../nscache -[root /usr/local/src/aolserver/nscache]# make install + [root aolserver]# cd /usr/local/src/aolserver40r2/nscache +[root nscache]# make install - - Install nsrewrite - [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 + [root nscache]# cd ../nsoracle +[root 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 INST=/usr/local/aolserver +[root nspostgres]# make install POSTGRES=LSB ACS=1 INST=/usr/local/aolserver40r2 + If you get errors like: + nspostgres.c: In function `Ns_PgTableList': +nspostgres.c:679: warning: passing arg 3 of `Tcl_DStringAppend' as signed due to prototype + then PostGreSQL is probably not in the standard location. The location of PostGreSQL is very dependent on which method was used to install it. To correct the problem, replace LSB with the path to the path to your PostGreSQL installation. Often this is /usr/local/pgsql. 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 + [root nspostgres]# 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 @@ -138,7 +124,7 @@ [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 + --prefix=/usr/local/aolserver40r2 --with-tcl=/usr/local/lib Now you can compile and configure tDOM [root unix]# sh CONFIG [root unix]# make install @@ -160,21 +146,21 @@ Oracle - [root aolserver]# cd /usr/local/aolserver/bin + [root aolserver]# cd /usr/local/aolserver40r2/bin [root bin]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle [root bin]# chmod 750 nsd-oracle [root bin]# -cd /usr/local/aolserver/bin +cd /usr/local/aolserver40r2/bin cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle chmod 750 nsd-oracle PostgreSQL - [root aolserver]# cd /usr/local/aolserver/bin + [root aolserver]# cd /usr/local/aolserver40r2/bin [root bin]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres [root bin]# chmod 755 nsd-postgres [root bin]# -cd /usr/local/aolserver/bin +cd /usr/local/aolserver40r2/bin cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres chmod 755 nsd-postgres @@ -190,6 +176,4 @@ ($Id$) - - - + \ No newline at end of file