problem with initdb - Mailing list pgsql-novice

From Nickou Oskouipour
Subject problem with initdb
Date
Msg-id 9F01DD3B66A7D311BAE8009027D5E69D0108C8C6@QUICKSERV2
Whole thread Raw
List pgsql-novice
I just installed PostgreSQL 7.0.2 on a RedHat 6.1 machine using rpm.
now I am trying to run initdb:
$ initdb -r /usr/local/pgsql/data



/usr/bin/initdb: [: integer expression expected before -eq
/usr/bin/initdb: [: integer expression expected before -ne
We are initializing the database system with username postgres
(uid=uid=40(postg
res)).
This user will own all the files and must also own the server process.

Creating template database in /usr/local/pgsql/data/base/template1
ERROR:  pg_atoi: error in "uid": can't parse "uid"
ERROR:  pg_atoi: error in "uid": can't parse "uid"
        syntax error 20 : parse errorinitdb: could not create template
database
initdb: cleaning up by wiping out /usr/local/pgsql/data/base/template1


not sure why this is happening, but I can't seem to overcome it.  There is
no initdb -D, but initdb -r seems to do accomplish the same thing.

Any help would be greatly appreciated.
Thanks,
    Nickou

pgsql-novice by date:

Previous
From: Mo Holkar
Date:
Subject: Error creating user
Next
From: PostgreSQL Server
Date:
Subject: Re: [INTERFACES] Problem in PostgreSQL - jdbc