Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id DD8599FB5B8 for ; Fri, 22 Jun 2007 01:38:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 60036-01-2 for ; Fri, 22 Jun 2007 01:38:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from a2s5.a2hosting.com (a2s5.a2hosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id C10BE9FB7A7 for ; Fri, 22 Jun 2007 01:38:04 -0300 (ADT) Received: from adsl-155-20-155.tys.bellsouth.net ([68.155.20.155] helo=[192.168.1.12]) by a2s5.a2hosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1I1auI-0003ac-A7; Fri, 22 Jun 2007 00:38:02 -0400 In-Reply-To: <467a0376.b4.49b9.1068201001@ihug.co.nz> References: <467a0376.b4.49b9.1068201001@ihug.co.nz> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <091519D4-2FFF-48CB-8382-E9776C632E49@pgedit.com> Cc: Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: initdb problem Date: Fri, 22 Jun 2007 00:37:58 -0400 To: Joe Barwell X-Mailer: Apple Mail (2.752.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/235 X-Sequence-Number: 25903 Hi Joe, This has got to be the longest thread ever to get PostgreSQL running on the Mac -- but I'm glad you have not given up :). On Jun 21, 2007, at 12:49 AM, Joe Barwell wrote: > acorn$ sudo su postgres -c 'pg_ctl start -l logfile -D > /Library/PostgreSQL8/data' > Password: > sh: line 1: logfile: Permission denied > server starting Since you did not specify the full path for the log file, I assume it is created in the current directory. Check your permissions there. > acorn$ postgres > postgres cannot access the server configuration file > "/Library/PostgreSQL8/data:/postgresql.conf": No such file > or directory > > Surely initdb should have created the configure file? Change to the data directory and see what is there. If you don't see lots of folders along with pg_hba.conf and postgresql.conf, then initdb did not work. At the risk of sending you down another path when you are close, you might want to look at this distribution and instructions: http://www.entropy.ch/software/macosx/postgresql/ If you still don't have initdb working, you might want to rename your postgres user and create a new one as described in these instructions. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL