Index: openacs-4/packages/acs-core-docs/www/aolserver4.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/aolserver4.html,v diff -u -N -r1.17.2.1 -r1.17.2.2 --- openacs-4/packages/acs-core-docs/www/aolserver4.html 26 Aug 2005 00:02:29 -0000 1.17.2.1 +++ openacs-4/packages/acs-core-docs/www/aolserver4.html 20 Oct 2005 18:06:20 -0000 1.17.2.2 @@ -1,4 +1,4 @@ -
Check suitability of previously installed TCL.�Start tcl (type 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 tclsh
or find it using which tclsh
).
@@ -45,8 +45,8 @@
[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 -r v2_7 nsoracle
-[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]# wget http://www.tdom.org/files/tDOM-0.8.0.tar.gz
+[root aolserver]# tar xvfz tDOM-0.8.0.tar.gz
[root root]#
cd /usr/local/src
mkdir aolserver40r10
@@ -63,7 +63,7 @@
cd /usr/local/src/aolserver40r10/aolserver
./configure --prefix=/usr/local/aolserver40r10 --with-tcl=/usr/local/lib/
make install
-/usr/local/aolserver40r10
instead of /usr/local/aolserver
in the steps below and check both scripts and makefiles to ensure they use the correct path.[root aolserver]#
ln -s /usr/local/aolserver40r10 /usr/local/aolserver
Configure, compile and install the modules.� +
If you are using gcc 4 or later, see http://openacs.org/forums/message-view?message_id=309814
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/aolserver40r10
instead of /usr/local/aolserver
in the steps below and check both scripts and makefiles to ensure they use the correct path.
[root aolserver]# ln -s /usr/local/aolserver40r10 /usr/local/aolserver
Configure, compile and install the modules.�
OpenACS looks for the Oracle driver at
/usr/local/aolserver/bin/ora8.so, but some versions of
nsoracle may create nsoracle.so instead. In that case, you
@@ -78,7 +78,7 @@
that all libraries are linked in:
ldd /usr/local/src/aolserver40r10/nspostgres/nspostgres.so
If you run into problems with libpq.a do the following (and repeat the step above)
[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
[root nspostgres]# cd ../nssha1
Now install nssha1:
[root nssha1]# make install AOLSERVER=/usr/local/aolserver
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;
[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
+// typedef unsigned char u_int8_t;
[root nssha1]# cd ../tDOM-0.8.0/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
Note that the location of the Tcl library may vary on differnt platforms (e.g. for Debian 3.0: --with-tcl=/usr/lib/tcl8.4)
Now you can compile and configure tDOM
[root unix]#sh CONFIG
[root unix]#make install
Add a database-specific wrapper script.�This script @@ -94,16 +94,16 @@ maintainers: this should be moved to the next page and integrated into the text there)
Oracle
[root aolserver]#cd /usr/local/aolserver/bin
-[root bin]#cp /tmp/openacs-5.2.0b1/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
+[root bin]#cp /tmp/openacs-5.2.0b5/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
[root bin]#chmod 750 nsd-oracle
[root bin]# cd /usr/local/aolserver/bin -cp /var/tmp/openacs-5.2.0b1/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle +cp /var/tmp/openacs-5.2.0b5/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle chmod 750 nsd-oracle
PostgreSQL
[root aolserver]#cd /usr/local/aolserver/bin
-[root bin]#cp /var/tmp/openacs-5.2.0b1/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
+[root bin]#cp /var/tmp/openacs-5.2.0b5/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
[root bin]#chmod 755 nsd-postgres
[root bin]# cd /usr/local/aolserver/bin -cp /var/tmp/openacs-5.2.0b1/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres +cp /var/tmp/openacs-5.2.0b5/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres chmod 755 nsd-postgres
You may need to edit these scripts if you are not using - /usr/local/aolserver as the directory of Aolserver4.
Change startup script (optional).�If you want to run AOLserver on a port below 1024 (normally, for a webserver you will use 80), you will have to change the /var/lib/aolserver/service0/etc/daemontools/run
script according to the documentation found there (namely: Add the -b yourip:yourport switch)
Change startup script (optional).�If you want to run AOLserver on a port below 1024 (normally, for a webserver you will use 80), you will have to change the /var/lib/aolserver/service0/etc/daemontools/run
script according to the documentation found there (namely: Add the -b yourip:yourport switch)