Skip site navigation (1) Skip section navigation (2)

Re: psql command line history not working

From: "Dan MacNeil" <dan(at)ltc(dot)org>
To: "Charlie Toohey" <ctoohey(at)pacbell(dot)net>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: psql command line history not working
Date: 2002-04-16 01:05:49
Message-ID: 008001c1e4f2$a4bfdb20$b11a9318@prometheus (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
>[getting readline support ]
> - installed readline library

Did you install the header files ?

If you are installing a binary that is compiled to use the library,
the library is enough. If you are compiling from scratch, you need the
.h files as well.

On Debian potato the command is:

        apt-get install libreadline4-dev

Hope this helps
----- Original Message -----
From: "Charlie Toohey" <ctoohey(at)pacbell(dot)net>
To: <pgsql-admin(at)postgresql(dot)org>
Sent: Monday, April 15, 2002 1:53 PM
Subject: [ADMIN] psql command line history not working

> I am trying to get command line history and editing to work with
psql, as
> life is a pain without it.
> I'm running PostgreSQL 7.1.3 on Linux.
> Documenation on this subject is very archaic, but I have done the
> so far:
> - installed readline library
> - run ./configure with the following command line options
>   --with-libs=/usr/local/lib --with-includes=/usr/local/include
> I am still getting quite a few errors in the config.log file when I
run gmake:
> - after "checking for readline" there are a bunch of errors, such as
> "undefined reference to tputs", "undefined reference to tgoto", etc.
>  followed by "failed program was: #line 3111 "configure" "
> - in the block beginning with "int main() { readline() " I get
"cannot find
> -ledit" --- but I haven't been able to find the edit library
> - the following block gives "undefined reference to setproctitle"
> checking for setproctitle in -lutil
> - int main() { setproctitle..   in turn fails because of "cannot
find lsocket"
> again, I can not find the socket library anywhere
> and so on...
> Does anyone have a list of what needs to be installed to get psql
> line history to work on Linux ? (and WHERE I can find these
libraries, etc..?)
> Thanks In Advance,
> Charlie
> ---------------------------(end of
> TIP 6: Have you searched our list archives?

In response to

pgsql-admin by date

Next:From: Brian McCaneDate: 2002-04-16 01:38:01
Subject: Re: Query planner quirk?
Previous:From: Tom LaneDate: 2002-04-16 00:28:58
Subject: Re: Killing a child process

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group