No command history in psql
Hello:
I am upgrading to postgresql version 7.2.1. I found that the psql has not
included the readline library automatically and doesn't have any readline
and history command function. So I configure the postgresql with option
--with-includes=/usr/local/include and --with-libs=/usr/libs/ so that it
should be able to search for the corresponding library and header files
(libreadline.a, history.h, readline.h). But it still fails!!!! Does anyone
get any idea??
Thanks a lot!
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
On Tue, Jul 23, 2002 at 02:53:10PM +0000, Carmen Wai wrote:
Hello:
I am upgrading to postgresql version 7.2.1. I found that the psql has not
included the readline library automatically and doesn't have any readline
and history command function. So I configure the postgresql with option
--with-includes=/usr/local/include and --with-libs=/usr/libs/ so that it
should be able to search for the corresponding library and header files
(libreadline.a, history.h, readline.h). But it still fails!!!! Does anyone
get any idea??
What does your output from configure say? I presume it doesn't
detect the relevant libs?
You don't say what sortof architecture you're working on, but if it
happens to be Solaris, there's a gotcha: you need 32-bit libraries to
compile with a 32-bit compiler, and 64-bit libraries to compile with
a 64-bit compiler. I have run into this problem on occasion when I
gave the wrong path to --with-libs and friends.
A
--
----
Andrew Sullivan 87 Mowat Avenue
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M6K 3E3
+1 416 646 3304 x110
ldd /path/to/psql should tell you if its finding the readline libraries.
you might also want to do
ldconfig -v | grep 'history'
and
ldconfig -v | grep 'readline'
to see what libraries you have. you can then verify that the libs you
have are actually where your telling pg they are supposed to be.
Robert Treat
Show quoted text
On Tue, 2002-07-23 at 10:53, Carmen Wai wrote:
Hello:
I am upgrading to postgresql version 7.2.1. I found that the psql has not
included the readline library automatically and doesn't have any readline
and history command function. So I configure the postgresql with option
--with-includes=/usr/local/include and --with-libs=/usr/libs/ so that it
should be able to search for the corresponding library and header files
(libreadline.a, history.h, readline.h). But it still fails!!!! Does anyone
get any idea??Thanks a lot!
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
I'm also having trouble finding readline when running ./configure.
When I type the command "ldconfig -v | grep 'readline'
I get...
libreadline.so.3 -> libreadline.so.3.0
libguireadline.so.0 -> libguireadline.so.0.0.0
libreadline.so.4 -> libreadline.so.4.2
So why would configure still tell me it can't find readline when it's in the
path? I'm trying to compile 7.2.1 on redhat 7.3. Thanks.
-----Original Message-----
From: Robert Treat [mailto:rtreat@webmd.net]
Sent: Tuesday, July 23, 2002 11:18 AM
To: Carmen Wai
Cc: pgsql-general@postgresql.org; pgsql-sql@postgresql.org
Subject: Re: [SQL] [GENERAL] No command history in psql
ldd /path/to/psql should tell you if its finding the readline libraries.
you might also want to do
ldconfig -v | grep 'history'
and
ldconfig -v | grep 'readline'
to see what libraries you have. you can then verify that the libs you
have are actually where your telling pg they are supposed to be.
Robert Treat
On Tue, 2002-07-23 at 10:53, Carmen Wai wrote:
Hello:
I am upgrading to postgresql version 7.2.1. I found that the psql has not
included the readline library automatically and doesn't have any readline
and history command function. So I configure the postgresql with option
--with-includes=/usr/local/include and --with-libs=/usr/libs/ so that it
should be able to search for the corresponding library and header files
(libreadline.a, history.h, readline.h). But it still fails!!!! Does anyone
get any idea??
Thanks a lot!
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Import Notes
Resolved by subject fallback
On Tue, Jul 23, 2002 at 02:30:52PM -0500, Hillensbeck, Preston wrote:
So why would configure still tell me it can't find readline when it's in the
path?
Do you have the headers installed, as well as the shared libs?
Cheers,
Neil
--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC