Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

initdb exists but refuses to run 1

Status
Not open for further replies.

kaancho12

Technical User
Feb 22, 2005
191
hi,
i installed the postgresql in my linux box recently. it seem to be installed ok and the necessary files exist in /usr/local/pgsql/bin --but when i try to run any command such as initdb it cannot find it even if i run it inside the directory where it exists. i changed the ownership of /usr/local/pgsql/bin and the initial postgre installation directory to something else than root (it does not work as root too).is there something i am doing wrong. the version i am trying to install is 8.0.3
 
initdb will refuse to run as root-- so don't bother trying that.

would you mind telling me exactly how you type in the command, what shell you use and what distro?

if you don't feel like doing that-- the quick answer is add the location of the program to your path - and then you should be able to run it from anywhere.

Or- make sure you are giving the full path when you run it. If you are in the directory where the program exists- if you don't have ./ in your path you may need that before the program name.
 
If you are used to dos, like me, you think that your current working directory will just work. gets me all the time.

enjoy running the best free dbms in the world (i think so anyway)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top