×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

initdb exists but refuses to run

initdb exists but refuses to run

initdb exists but refuses to run

(OP)
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

RE: initdb exists but refuses to run

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.

RE: initdb exists but refuses to run

(OP)
thanks,
i needed "./" in my path.

RE: initdb exists but refuses to run

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)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close