Re: Install question - Mailing list pgsql-novice

From Oliver Elphick
Subject Re: Install question
Date
Msg-id 1064872364.1309.19.camel@linda.lfix.co.uk
Whole thread Raw
In response to Re: Install question  ("Mickey" <mickey@mcnjeni.com>)
List pgsql-novice
On Mon, 2003-09-29 at 22:04, Mickey wrote:
> New install - Rh 7.3, PG 7.2.3
>
> On trying to start postgres with
>
> pg_ctrl start
>
> I get this:
>
> pg_ctl: no database directory or environment variable $PGDATA is specified
>
> I was instructed to add this:
>
> POSTGRESHOME=/usr/local/pgsql
> MANPATH=$POSTGRESHOME/man:$MANPATH
> PATH=$POSTGRESHOME/bin:$PATH
> PGDATA=$POSTGRESHOME/data
> LD_LIBRARY_PATH=$POSTGRESHOME/lib:$LD_LIBRARY_PATH
> export LD_LIBRARY_PATH MANPATH PATH PGDATA
>
> To this file:
>
>  /etc/profile
>
> Which I have done, and it has been saved ;)

Have you logged out and in since?  Or are you using a setup where
/etc/profile is sourced into your environment?  In many systems,
/etc/profile is sourced by a login shell, but that may not be the case
if you are using a GUI environment.  You will need to make sure that it
is (see the bash manual page for an explanation of this).

To source it in the current session, do:

 . /etc/profile

which will read the file and set those variables in your environment.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Let not your heart be troubled; ye believe in God,
      believe also in me."          John 14:1


pgsql-novice by date:

Previous
From: "Mickey"
Date:
Subject: Re: Install question
Next
From: Tom Lane
Date:
Subject: Re: Install question