X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 42BD8D928F for ; Wed, 28 Sep 2005 22:36:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17888-02 for ; Thu, 29 Sep 2005 01:36:51 +0000 (GMT) Received: from cfcl.com (cpe-24-221-172-174.ca.sprintbbd.net [24.221.172.174]) by svr1.postgresql.org (Postfix) with ESMTP id E6106D921C for ; Wed, 28 Sep 2005 22:36:52 -0300 (ADT) Received: from [192.168.254.205] ([192.168.254.205]) by cfcl.com (8.12.6/8.12.6) with ESMTP id j8T1cA1S039894; Wed, 28 Sep 2005 18:38:16 -0700 (PDT) (envelope-from rdm@cfcl.com) Mime-Version: 1.0 Message-Id: Date: Wed, 28 Sep 2005 18:29:07 -0700 To: pgsql-docs@postgresql.org From: Rich Morin Subject: INSTALL file nits Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/45 X-Sequence-Number: 3231 I just grabbed a copy of PostgreSQL from http://www.apple.com/downloads/macosx/unix_open_source/postgresql.html and installed it on my Mac OS X (Tiger; 10.4.2) machine. I followed the "Short Version" in the INSTALL file until I ran into problems, then did some workarounds, as discussed below. Perhaps this file should be made a bit more explicit or an INSTALL.OSX file could be generated... ./configure No reported problems. gmake No such command, but I ran "make --version" and saw that it was GNU Make, so I used it. No reported problems. su This command requires a root password, which does not exist. OSX uses "sudo -s" for this sort of thing. gmake install Used make; no reported problems. adduser postgres No such command. I considered using System Preferences > Accounts to add a user, but this seemed like a rather bogus approach, as it would put a user in the Login dialog (unlike lp, postfix, ...). I found a (slightly dated) note from Apple, however, that suggested just this approach, so I gave it a try. http://developer.apple.com/internet/opensource/postgres.html mkdir /usr/local/pgsql/data chown postgres /usr/local/pgsql/data No reported problems. su - postgres No reported problems (when run under sudo). /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 & /usr/local/pgsql/bin/createdb test /usr/local/pgsql/bin/psql test No reported problems, but the last command left me at a prompt with no particular instructions as to what I should do next. -r -- email: rdm@cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.