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 ;)
Anyone know anything that might help?
Thanks,
Mickey