pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hugh Esco <hesco@greens.org>
To: pgsql-sql@postgresql.org
Subject: Re: Problems invoking psql. Help please.
Date: Wed, 20 Nov 2002 13:29:28 -0500
Message-ID: <5.1.0.14.0.20021120130814.0426dad0@petra.cagreens.org> (raw)
In-Reply-To: <1037803611.24840.22.camel@linda>
References: <5.1.0.14.0.20021120092138.0431a7c0@petra.cagreens.org>
	<5.1.0.14.0.20021120001957.04247c40@petra.cagreens.org>
	<5.1.0.14.0.20021116140623.031cbec0@petra.cagreens.org>
	<5.1.0.14.0.20021116140623.031cbec0@petra.cagreens.org>
	<5.1.0.14.0.20021118232418.03868810@petra.cagreens.org>
	<18156.1037685401@sss.pgh.pa.us>
	<5.1.0.14.0.20021119105355.0297a630@petra.cagreens.org>
	<5.1.0.14.0.20021120001957.04247c40@petra.cagreens.org>
	<5.1.0.14.0.20021120092138.0431a7c0@petra.cagreens.org>

Thank you Tom Lane and Oliver Elphick.

Here is the latest shell dialogue.

>postgres@biko:/home/hesco$ ./usr/lib/postgresql/bin/psql -d template1
>sh: ./usr/lib/postgresql/bin/psql: No such file or directory
>postgres@biko:/home/hesco$ /usr/lib/postgresql/bin/psql -d template1
>sh: /usr/lib/postgresql/bin/psql: No such file or directory
>postgres@biko:/home/hesco$ cd /usr/lib/postgresql/bin
>postgres@biko:/usr/lib/postgresql/bin$ ls -al | grep psql
>postgres@biko:/usr/lib/postgresql/bin$

Returned a blank prompt.  My copy of psql is in /usr/bin.
Is that a problem?  Its where apt-get install postgresql put it.
Should I move it?  Someone earlier suggested building this
from source, which I guess would allow me to do that.
I don't know.

>postgres@biko:/usr/lib/postgresql/bin$ ./usr/bin/psql -d template1
>sh: ./usr/bin/psql: No such file or directory
>postgres@biko:/usr/lib/postgresql/bin$ /usr/bin/psql -d template1
>Could not execv /usr/lib/postgresql/bin/psql
>postgres@biko:/usr/lib/postgresql/bin$

Same error again.

>postgres@biko:/usr/lib/postgresql/bin$ cd /usr/bin
>postgres@biko:/usr/bin$ ls -al | grep psql
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 psql -> pg_wrapper
>postgres@biko:/usr/bin$ ls -al | grep pg_wrapper
><snip>
>-rwxr-xr-x    1 root     root         6584 Sep 11 04:30 pg_wrapper
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 psql -> pg_wrapper
>postgres@biko:/usr/bin$

So, no.  to answer Mr. Elphick's question below.
I can not run it directly.

I'm not sure what I would do with /sbin/ldconfig to let it know where 
/usr/lib/libpq.so.2 is located at.  My attempts to run it return a blank 
shell prompt.  I assume that Mr. Elphick's demonstration of the error 
generated by renaming the file shows there is no cheese down that hole, 
anyway.

-- Hugh Esco

At 02:46 PM 11/20/02 +0000, Oliver Elphick wrote:
>On Wed, 2002-11-20 at 14:23, Hugh Esco wrote:
> > Everything in the path is executable for others.
> > That is true for:
> >          /usr/lib/postgresql/bin
> > and for:
> >          /usr/bin
> > where psql is located.
>
>So can you run the executable directly?
>
>     /usr/lib/postgresql/bin/psql -d template1
>
>
>--
>Oliver Elphick                                Oliver.Elphick@lfix.co.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
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




view thread (31+ messages)

Message-ID: <5.1.0.14.0.20021120130814.0426dad0@petra.cagreens.org>
Permalink:  ../5.1.0.14.0.20021120130814.0426dad0@petra.cagreens.org/
Also on:    postgresql.org/message-id/5.1.0.14.0.20021120130814.0426dad0@petra.cagreens.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: hesco@greens.org
  Subject: Re: Problems invoking psql. Help please.
  In-Reply-To: <5.1.0.14.0.20021120130814.0426dad0@petra.cagreens.org>
  References: <5.1.0.14.0.20021120092138.0431a7c0@petra.cagreens.org> <5.1.0.14.0.20021120001957.04247c40@petra.cagreens.org> <5.1.0.14.0.20021116140623.031cbec0@petra.cagreens.org> <5.1.0.14.0.20021118232418.03868810@petra.cagreens.org> <18156.1037685401@sss.pgh.pa.us> <5.1.0.14.0.20021119105355.0297a630@petra.cagreens.org> <5.1.0.14.0.20021120130814.0426dad0@petra.cagreens.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox