Re: Problems invoking psql. Help please.

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Hugh Esco <hesco(at)greens(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problems invoking psql. Help please.
Date: 2002-11-20 12:49:27
Message-ID: 1037796567.29676.107.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, 2002-11-20 at 06:30, Hugh Esco wrote:
> I did this tonight
>
> dpkg --purge postgresql
> apt-get install postgresql
>
> and am now still getting the following:
>
> >biko:/usr/bin# psql -U postgres
> >No database specified
> >biko:/usr/bin# psql -U postgres template1
> >Could not execv /usr/lib/postgresql/bin/psql

There is something wrong with permissions here.

You ought to be able, as _any_ user, to run /usr/lib/postgresql/bin/psql
Can you? It seems clear that pg_wrapper can't.

If not, why not?

I assume the file must exist, since you have just reinstalled the
package. Is the file itself executable by all users? (Use "ls -l" to
check this.)

Has someone made an intermediate directory unsearchable? Every
directory in its path should have search (i.e. execute) permission for
all users. Check /usr, /usr/lib, /usr/lib/postgresql, and so on.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"If my people, which are called by my name, shall
humble themselves, and pray, and seek my face, and
turn from their wicked ways; then will I hear from
heaven, and will forgive their sin, and will heal
their land." II Chronicles 7:14

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2002-11-20 13:06:47 Re: Date trunc in UTC
Previous Message Thrasher 2002-11-20 10:37:33 Re: Date trunc in UTC