I've manage to get through after add another user - postgres2 coz looks like postgres was already exist. But when I type
[root@localhost src]# su - postgres2
the this just appear; means I've logged to postgres2 account
[postgres2@localhost pqsql]$
.
.
but how could I continue with these line?
--------
[root src]# su - postgres
[postgres ~] emacs ~postgres/.bashrc
source $HOME/.bashrc
export PATH=/usr/local/bin/:$PATH:/usr/local/pgsql/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
--------
because when I typed:
[postgres2@localhost pqsql]$ emacs ~postgres/.bashrc
the error is:
-bash: emacs: command not found
should I just continue to the next step, ignoring the step to set up postgres's environment variables?