If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Unanswered: Problem with initdb

hi, im using Redhat 9 and i have Postgresql 8.0.7 installed. i've checked at www.postgresql.org that 8.0.7 is supported by redhat 9. i've tried to install many times but im still encountering this error. does anyone knows what is wrong?

[root@en23-6-147-ws15 local]# su - postgres
-bash-2.05b$ initdb
/usr/bin/initdb: line 1: basename: command not found
/usr/bin/initdb: line 1: sed: command not found
/usr/bin/initdb: line 1: sed: command not found
: bug: version number has wrong format <--- what does this mean?

-bash-2.05b$ echo $PGDATA
/var/lib/pgsql/data

[root@en23-6-147-ws15 local]# echo $POSTGRESQL_HOME
/usr/local/pgsql

-bash-2.05b$ echo $PGDATA
/var/lib/pgsql/data
i created a folder(data) in $POSTGRESQL_HOME(/usr/local/pgsql) to store the database.
Should PGDATA point to /var/lib/pgsql/data? or /usr/local/pgsql/data?

***Start the DB***
-bash-2.05b$ pg_ctl start
/usr/bin/pg_ctl: line 1: basename: command not found
/usr/bin/pg_ctl: line 1: sed: command not found
FATAL: File /var/lib/pgsql/data/PG_VERSION is missing. This is not a valid data directory.
postmaster successfully started

can anyone help? i do not know what is going on, and this is my first time using linux. kindly anyone help out. i'm having a grading in 3days time.
let me know if u need any extra information.
Thanks alot!