pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John DeSoi <desoi@pgedit.com>
To: Joe Barwell <jbar@es.co.nz>
Cc: pgsql-admin@postgresql.org
Subject: Re: initdb problem
Date: Fri, 22 Jun 2007 00:37:58 -0400
Message-ID: <091519D4-2FFF-48CB-8382-E9776C632E49@pgedit.com> (raw)
In-Reply-To: <467a0376.b4.49b9.1068201001@ihug.co.nz>
References: <467a0376.b4.49b9.1068201001@ihug.co.nz>

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




view thread (26+ messages)  latest in thread

Message-ID: <091519D4-2FFF-48CB-8382-E9776C632E49@pgedit.com>
Permalink:  ../091519D4-2FFF-48CB-8382-E9776C632E49@pgedit.com/
Also on:    postgresql.org/message-id/091519D4-2FFF-48CB-8382-E9776C632E49@pgedit.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: desoi@pgedit.com, jbar@es.co.nz
  Subject: Re: initdb problem
  In-Reply-To: <091519D4-2FFF-48CB-8382-E9776C632E49@pgedit.com>
  References: <467a0376.b4.49b9.1068201001@ihug.co.nz> <091519D4-2FFF-48CB-8382-E9776C632E49@pgedit.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox