Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2008 18:17:06 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: PostgreSQL setup
Message-ID:  <13963197@bb.ipt.ru>
In-Reply-To: <20081231150648.GA18063@teddy.fas.com> (stan's message of "Wed\, 31 Dec 2008 10\:06\:48 -0500")
References:  <20081231150648.GA18063@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
stan <stanb@panix.com> writes:

> I have installed PostgreSQL via the ports on a new 7.1 machine. I am trying
> to set it up.
>
> I found:
>
> http://www.freebsddiary.org/postgresql.php
>
> Whic says to run:
>
>  su -l pgsql -c initdb
>
> But that gives me the following error message:
>
> initdb: no data directory specified
> You must identify the directory where the data for this database system
> will reside.  Do this with either the invocation option -D or the
> environment variable PGDATA.
>
> But when I try:
>
> #  su -l pgsql -c initdb -D /usr/local/postgres
>
> I get:
>
> Illegal option -D
>
> What am I doing wrong?

You haven't read a post-install message. ;-)
You may read it now:
-----
$ less /usr/ports/databases/postgresql83-server/files/pkg-message-server.in
-----


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13963197>