Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've just installed Postgres9 and it is up and running without any issues. There is one thing however that is confusing me:

If I type /usr/local/pgsql/bin/psql test then postgres command line loads and I can use it as expected, however...

If I cd /usr/local/pgsql/bin then type psql test I get the following error:

The program 'psql' is currently not installed. To run 'psql' please ask your administrator to install the package 'postgresql-client-common'

Does anyone know why? (please don't say install postgresql-client-common as this doesn't solve the problem)

share|improve this question

1 Answer 1

up vote 4 down vote accepted

The directory /usr/local/pgsql/bin is not in your PATH (and neither is . - which is a good thing for security reasons). Simply run it like this if you're in that directory:

./psql test

which says run psql from the current directory (./).

share|improve this answer
    
Thanks. I don't use Linux very often and always forget basics... which are surprisingly hard to just find the answer to. I should have known this. –  Mr Shoubs Oct 12 '10 at 14:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.