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.3 -r1.4 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml 4 Feb 2004 16:47:35 -0000 1.3 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml 14 Feb 2004 19:51:00 -0000 1.4 @@ -19,6 +19,8 @@ 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 @@ -43,6 +45,7 @@ [root root]# cd /usr/local/src [root src]# mkdir aolserver [root src]# cd aolserver +[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 @@ -108,9 +111,9 @@ 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=/usr/local/pgsql ACS=1 INST=/usr/local/aolserver 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 Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml,v diff -u -r1.19 -r1.20 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 12 Feb 2004 13:51:43 -0000 1.19 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 14 Feb 2004 19:50:47 -0000 1.20 @@ -75,7 +75,7 @@ - Unpack PostgreSQL. + Unpack PostgreSQL 7.3.4. If you have not downloaded the postgresql tarball to /tmp/postgresql-7.3.4.tar.gz, get it. @@ -88,6 +88,32 @@ + ALTERNATIVE: Unpack PostgreSQL 7.4.1 + If you have not downloaded the postgresql tarball to + /tmp/postgresql-7.4.1.tar.bz2, + get it. + + [root root]# cd /usr/local/src +[root src]# tar xfj /tmp/postgresql-7.4.1.tar.bz2 +[root src]# +cd /usr/local/src +tar xfj /tmp/postgresql-7.4.1.tar.bz2 + + + + Install Bison + Only do this if bison --version is smaller than 1.875 and you install PostgreSQL 7.4. + + [root root]# cd /usr/local/src +[root src]# wget http://ftp.gnu.org/gnu/bison/bison-1.875.tar.gz +[root src]# tar xfz bison-1.875.tar.gz +[root src]# cd bison-1.875 +[root src]# ./configure +[root src]# make install + + + + Create the Postgres user Create a user and group (if you haven't done so before) for @@ -109,16 +135,26 @@ chmod 750 /usr/local/pgsql - Mac OS X: Do instead: - sudo niutil -create / /groups/web -sudo niutil - list / /groups - The second command returns a list of groups. The last entry should include the gid of the group web, which you will need in the next sequence: - sudo niutil -create / /users/postgres -sudo niutil -createprop / /users/postgres gid web's gid_number + + Mac OS X: Do instead: + First make sure the gids and uids below are available (change them if +they are not).To list taken uids and gids: + + nireport / /groups name gid | grep "[0123456789][0123456789]" +nireport / /users name uid | grep "[0123456789][0123456789]" + + Now you can install the users + sudo niutil -create / /groups/web +sudo niutil -createprop / /groups/web gid 201 +sudo niutil -create / /users/postgres +sudo niutil -createprop / /users/postgres gid 201 +sudo niutil -createprop / /users/postgres uid 502 sudo niutil -createprop / /users/postgres home /usr/local/pgsql -sudo niutil -createprop / /users/postgres shell /bin/bash +sudo niutil -create / /users/service0 +sudo niutil -createprop / /users/service0 gid 201 +sudo niutil -createprop / /users/service0 uid 201 mkdir -p /usr/local/pgsql -chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4 +chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4.1 chmod 750 /usr/local/pgsql @@ -131,8 +167,10 @@ [root src]# su - postgres [postgres ~] emacs ~postgres/.bashrc + Paste this line into .bash_profile: +source $HOME/.bashrc Paste these lines into .bashrc: -export PATH=$PATH:/usr/local/pgsql/bin +export PATH=/usr/local/bin/:$PATH:/usr/local/pgsql/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib Test this by logging in as postgres and checking the @@ -157,7 +195,8 @@ On debian woody (stable, 3.0), do ./configure --without-readline --without-zlib. [root src]# su - postgres [postgres pgsql]$ cd /usr/local/src/postgresql-7.3.4 -[postgres postgresql-7.3.4]$ ./configure +[postgres postgresql-7.3.4]$ ./configure --with-includes=/sw/include/ --with-libraries=/sw/lib --enable-locale --enable-multibyte \ + --enable-syslog --enable-unicode-conversion --enable-recode creating cache ./config.cache checking host system type... i686-pc-linux-gnu (many lines omitted>