pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Barinov <andy.lauerbarinov@me.com>
To: pgsql-admin@postgresql.org
Subject: Configuring pg on os x lion
Date: Fri, 27 Apr 2012 19:22:25 +0000 (GMT)
Message-ID: <488190a6-e3b2-6d21-b4fe-dbad540f23c0@me.com> (raw)

Hi Everyone,

I am trying to get pg working on os x lion and getting some configuration errors. Wondering if anyone on this list faced these before.

I installed pg via homebrew and I get this error when trying to launch it via a local web server on my machine: 
    could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
So I go ahead and try to run postgres directly. When I do I get this:
larson:~ larson$ /usr/local/Cellar/postgresql/9.1.3/bin/postgres ; exit;
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
logout
So my thinking here is that the config files are missing. I searched for pg_hba.conf file and couldn't find it. Now I am unsure how to proceed, when I used pg on os x Snow Leopard I could go into a ~/Library/Developer/postgresql folder and all my config files would be there. There would also be logs I could read to get a better idea of what's going. Now those seem to be missing, does anyone know where I can find them?
Thanks in advance for your help,
Andrew

view thread (4+ messages)  latest in thread

Message-ID: <488190a6-e3b2-6d21-b4fe-dbad540f23c0@me.com>
Permalink:  ../488190a6-e3b2-6d21-b4fe-dbad540f23c0@me.com/
Also on:    postgresql.org/message-id/488190a6-e3b2-6d21-b4fe-dbad540f23c0@me.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: andy.lauerbarinov@me.com
  Subject: Re: Configuring pg on os x lion
  In-Reply-To: <488190a6-e3b2-6d21-b4fe-dbad540f23c0@me.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