Skip site navigation (1) Skip section navigation (2)

Re: Install question

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Mickey <mickey(at)mcnjeni(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Install question
Date: 2003-09-29 21:52:44
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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 
> 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(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK                   
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 

In response to

pgsql-novice by date

Next:From: Tom LaneDate: 2003-09-29 22:16:52
Subject: Re: Install question
Previous:From: MickeyDate: 2003-09-29 21:04:58
Subject: Re: Install question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group