logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Install question: msg#00307

Subject: Re: Install question
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@xxxxxxxxxx
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 


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>