Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4BBA29FB324 for ; Tue, 19 Jun 2007 22:01:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 52089-06 for ; Tue, 19 Jun 2007 22:01:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from alias1.ihug.co.nz (alias1.ihug.co.nz [203.96.222.11]) by postgresql.org (Postfix) with ESMTP id 23D0F9FB2E0 for ; Tue, 19 Jun 2007 22:01:52 -0300 (ADT) Received: from ironport3.ihug.co.nz [203.109.254.23] by alias1.ihug.co.nz with esmtp (Exim 3.36 #1 (Debian)) id 1I0oZx-00033V-00; Wed, 20 Jun 2007 13:01:49 +1200 Received: from grunt7.ihug.co.nz (HELO ihug.co.nz) ([203.109.254.47]) by ironport3.ihug.co.nz with SMTP; 20 Jun 2007 13:01:50 +1200 X-Ironport-Seen: Yes From: Joe Barwell Reply-to: Joe Barwell To: Subject: initdb problem X-Mailer: Quality Web Email v3.1m, http://netwinsite.com/refw.htm X-Originating-IP: 222.154.165.88 Date: Wed, 20 Jun 2007 13:01:50 +1200 Message-id: <46787c7e.5c.7231.660912604@ihug.co.nz> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.411 tagged_above=0 required=5 tests=AWL=0.410, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/190 X-Sequence-Number: 25858 Hello people, Having installed the universal binary for pg 8.2.4 on my mac running 10.3.9, I'm now trying to use the initdb command, but keep running into problems. I can't seem to get the right syntax. Can anyone suggest where I'm going wrong? Here's what terminal shows: Acorn acorn 1 acorn$ login root Password: Last login: Thu Jun 14 13:43:54 on ttyp1 Welcome to Darwin! Acorn:~ root# su postgres shell-init: could not get current directory: getcwd: cannot access parent directories: Permission denied su: /dev/null/.bashrc: Not a directory Acorn:/var/root postgres$ initdb -D /Library/PostgreSQL8/data su: initdb: command not found Acorn:/var/root postgres$ cd chdir: could not get current directory: getcwd: cannot access parent directories: Permission denied su: cd: /dev/null: Not a directory Acorn:/var/root postgres$ cwd su: cwd: command not found Acorn:/var/root postgres$ /Library/PostgreSQL8/initdb -D /Library/PostgreSQL8/data su: /Library/PostgreSQL8/initdb: No such file or directory Acorn:/var/root postgres$ /Library/PostgreSQL8/bin/initdb -D /Library/PostgreSQL8/data could not identify current directory: Permission denied could not identify current directory: Permission denied could not identify current directory: Permission denied The program "postgres" is needed by initdb but was not found in the same directory as "initdb". Check your installation. Acorn:/var/root postgres$ TIA, Joe