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 -N -r1.15.2.6 -r1.15.2.7
--- openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 15 Dec 2003 14:29:16 -0000 1.15.2.6
+++ openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 18 Dec 2003 10:02:20 -0000 1.15.2.7
@@ -14,11 +14,16 @@
Skip this section if you will run only Oracle.
- OpenACS &version; will run with PostgreSQL 7.2.x, 7.3.2,
- 7.3.3, and 7.3.4. 7.3.4 is the recommended version of PostgreSQL.
+ OpenACS &version; will run with PostgreSQL 7.2.x, 7.3.2, 7.3.3, and 7.3.4. 7.3.4 is the recommended version of PostgreSQL. PostgreSQL 7.4 has been verified.
+
+ Mac OS X
+ If you are running Mac OS X prior to 10.3, you should be able to install and use PostGreSQL 7.2.x or 7.3.x. Mac OS X 10.3 requires PostGreSQL 7.4.
+
+
+ Debian
@@ -99,18 +104,33 @@
mkdir -p /usr/local/pgsql
chown -R postgres.web /usr/local/pgsql /usr/local/src/postgresql-7.3.4
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
+sudo niutil -createprop / /users/postgres home /usr/local/pgsql
+sudo niutil -createprop / /users/postgres shell /bin/bash
+mkdir -p /usr/local/pgsql
+chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4
+chmod 750 /usr/local/pgsql
+
+
+
Set up postgres's environment variablesThey are necessary for the executable to find its supporting
- libraries. For convenience, we'll simply append the necessary
- lines to the postgres shell config file.
+ libraries. Put the following lines into the postgres user's environment.
- [root src]# echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc
-[root src]# echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bashrc
-echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc
-echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bashrc
+ [root src]# su - postgres
+[postgres ~] emacs ~postgres/.bashrc
+ Paste these lines into .bashrc:
+export PATH=$PATH:/usr/local/pgsql/bin
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/libTest this by logging in as
postgres and checking the
paths; you should see /usr/local/pgsql/bin
@@ -388,6 +408,18 @@
Starting PostgreSQL: ok
root:~ #
+
+ Mac OS X:
+
+
+ Install the startup script:
+ cd /Library/StartupItems/
+tar xfz /var/lib/aolserver/service0/packages/acs-core-docs/www/files/osx-postgres-startup-item.tgz
+
+
+
+
+