pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpsql command line history not working
4+ messages / 4 participants
[nested] [flat]
* psql command line history not working
@ 2002-04-15 17:53 Charlie Toohey <ctoohey@pacbell.net>
0 siblings, 2 replies; 4+ messages in thread
From: Charlie Toohey @ 2002-04-15 17:53 UTC (permalink / raw)
To: pgsql-admin
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 following
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 anywhere
- the following block gives "undefined reference to setproctitle" when
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 command
line history to work on Linux ? (and WHERE I can find these libraries, etc..?)
Thanks In Advance,
Charlie
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: psql command line history not working
@ 2002-04-16 01:05 Dan MacNeil <dan@ltc.org>
parent: Charlie Toohey <ctoohey@pacbell.net>
1 sibling, 0 replies; 4+ messages in thread
From: Dan MacNeil @ 2002-04-16 01:05 UTC (permalink / raw)
To: Charlie Toohey <ctoohey@pacbell.net>; 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@pacbell.net>
To: <pgsql-admin@postgresql.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
following
> 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
anywhere
>
> - the following block gives "undefined reference to setproctitle"
when
> 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
command
> line history to work on Linux ? (and WHERE I can find these
libraries, etc..?)
>
> Thanks In Advance,
> Charlie
>
>
>
>
>
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: psql command line history not working
@ 2002-04-16 02:10 Peter Eisentraut <peter_e@gmx.net>
parent: Charlie Toohey <ctoohey@pacbell.net>
1 sibling, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2002-04-16 02:10 UTC (permalink / raw)
To: Charlie Toohey <ctoohey@pacbell.net>; +Cc: pgsql-admin
Charlie Toohey writes:
> I am trying to get command line history and editing to work with psql, as
> life is a pain without it.
Check that you have the readline header files installed (and if configure
finds them; readline.h, history.h or similar). Look for RPMs
readline-devel or some such.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: psql command line history not working
@ 2002-04-16 13:52 Edipo Elder Fernandes de Melo <edipoelder@ig.com.br>
0 siblings, 0 replies; 4+ messages in thread
From: Edipo Elder Fernandes de Melo @ 2002-04-16 13:52 UTC (permalink / raw)
To: pgsql-admin
Em 15 Apr 2002, Peter Eisentraut escreveu:
>> I am trying to get command line history and editing to work with psql, as
>> life is a pain without it.
>
>Check that you have the readline header files installed (and if configure
>finds them; readline.h, history.h or similar). Look for RPMs
>readline-devel or some such.
I had same problem. But, in my case, i instaled readline-devel, used
--with-includes and --with-libs, as described in docs, and the configure
script still not find/using them.
Abracos,
Edipo Elder
[edipoelder@ig.com.br]
_________________________________________________________________________
Você podia estar baixando sua musica predileta, enquanto lia esse e-mail.
Não perca tempo, tenha acesso rápido a internet com o Super iG.
http://registro.ig.com.br/superig
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2002-04-16 13:52 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15 17:53 psql command line history not working Charlie Toohey <ctoohey@pacbell.net>
2002-04-16 01:05 ` Dan MacNeil <dan@ltc.org>
2002-04-16 02:10 ` Peter Eisentraut <peter_e@gmx.net>
2002-04-16 13:52 Re: psql command line history not working Edipo Elder Fernandes de Melo <edipoelder@ig.com.br>
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