From: | Jarkko Elfving <jarelf(at)ebaana(dot)net> |
---|---|
To: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Dead-end in PostgreSQL 8.0 fresh installation (while |
Date: | 2005-01-23 06:43:32 |
Message-ID: | 1106462613.3195.28.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, 2005-01-22 at 22:23 -0800, Lonni J Friedman wrote:
> On Sun, 23 Jan 2005 08:09:15 +0200, Jarkko Elfving <jarelf(at)ebaana(dot)net> wrote:
> > Hi again...
> >
> > I tried to solve my PostgreSQL cluster problem like Michael Fuhr and
> > Lonni Friedman helps me, but I didn't get it work. So I figured out that
> > if I do an fresh installation and removed the PostgreSQL completely
> > (even those JDBC and PL -drivers - everything) and be sure that it is
> > completely removed. Then I installed it again with rpm -Uhv command and
> > start to proceed like the manuals tells me, but now I'm in dead-end:
> > initdb fails because postgres program was not found. How this could be
> > happened? I did not removed the postgres user because I thought that is
> > not needed to do. Initdb returns following fail:
> >
> > # su postgres
> > bash-3.00$ initdb -D=/var/lib/pgsql/data/
> > fgets failure: Success
> > The program "postgres" is needed by initdb but was not found in the
> > same directory as "/usr/bin/initdb".
> > Check your installation.
> >
> > I did check that file postgres really is in /usr/bin -folder.
> >
> > How should I proceed now?
>
> Are you using the RPMs? If so, then starting postgresql with
> /etc/init.d/postgresql for the first time will run initdb for you.
>
Yes. I'm using the RPM's and yes I'd used /etc/init.d/postgresql but it
fails with errors:
# /etc/rc.d/init.d/postgresql start
Initializing database: [FAILED]
Starting postgresql service: [FAILED]
I did the folder /var/lib/pgsql as documets tells me to do and give
rights to postgres as user and a group (hmm... I don't know how say this
properly, so I paste the command what I was used:
mkdir /var/lib/pgsql
chown postgres:postgres /var/lib/pgsql
/etc/rc.d/init.d/postgresql start)
What I'm doing wrong?
--
Jarkko Elfving <jarelf(at)ebaana(dot)net>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-01-23 07:15:02 | Re: Dead-end in PostgreSQL 8.0 fresh installation (while |
Previous Message | Lonni J Friedman | 2005-01-23 06:23:27 | Re: Dead-end in PostgreSQL 8.0 fresh installation (while upgrading doesn't get anywhere) |