Thread: Read line feature

Read line feature

From
Dorin Grunberg
Date:
Hello,

I am trying to install postgresql 7.1 on an OpenBSD 2.8 with Readline 4.1
with the following command:

./configure --with-perl --with-includes=/usr/local/include/readline
--with-libs=/usr/local/lib

( I did check for the presence of libreadline.a and libhistory.a)

and I did try with this one too:

./configure --with-perl --with-includes=/usr/local/include
--with-libs=/usr/local/lib

Everything goes perfect the database is installed and everything works
except the history feature.

I did create a .psql_history in the /home/postgres but it doesn't look like
it's working.

Any help would be greatly appreciated,

Dorin

Re: Read line feature

From
Tom Lane
Date:
Dorin Grunberg <dorin@visgen.com> writes:
> ( I did check for the presence of libreadline.a and libhistory.a)

You need the header files too (readline.h etc).  Does configure find
them?

            regards, tom lane

Re: Read line feature

From
Dorin Grunberg
Date:
When I am running:

./configure --with-perl --with-includes=/usr/local/include/readline
--with-libs=/usr/local/lib

this is part of the output I am getting on the screen without any errors or
warnings.

............

checking for main in -lsfio... (cached) no
checking for readline... (cached) yes (-lreadline -ltermcap)
checking for library containing using_history... (cached) none required
checking for main in -lbsd... (cached) no
checking for setproctitle in -lutil... (cached) yes

........................

checking whether string.h and strings.h may both be included... (cached) yes
checking for readline/readline.h... (cached) yes
checking for readline/history.h... (cached) no
checking for history.h... (cached) no
checking for working const... (cached) yes

Dorin


At 01:14 PM 4/16/2001 -0400, Tom Lane wrote:
>Dorin Grunberg <dorin@visgen.com> writes:
> > ( I did check for the presence of libreadline.a and libhistory.a)
>
>You need the header files too (readline.h etc).  Does configure find
>them?
>
>                         regards, tom lane


Re: Read line feature

From
Tom Lane
Date:
Dorin Grunberg <dorin@visgen.com> writes:
> When I am running:
> ./configure --with-perl --with-includes=/usr/local/include/readline
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Try just --with-includes=/usr/local/include.  It shouldn't be necessary
to point it directly at the readline subdirectory.

> checking for readline/readline.h... (cached) yes
> checking for readline/history.h... (cached) no

Seems odd that you would have readline.h and not history.h.  What
version of libreadline do you have installed, anyway?

            regards, tom lane

Re: Read line feature

From
Dorin Grunberg
Date:
When running:

./configure --with-perl --with-includes=/usr/local/include
--with-libs=/usr/local/lib

the output is this ... same as before.

......................................
checking whether string.h and strings.h may both be included... (cached) yes
checking for readline/readline.h... (cached) yes
checking for readline/history.h... (cached) no
checking for history.h... (cached) no
......................................

The Readline is version 4.1 and this is the content of my readline directory:

-rw-r--r--  1 root  wheel   3848 Apr 16 13:32 chardefs.h
-rw-r--r--  1 root  wheel   9294 Apr 16 13:32 history.h
-rw-r--r--  1 root  wheel   3528 Apr 16 13:32 keymaps.h
-rw-r--r--  1 root  wheel  24657 Apr 16 13:32 readline.h
-rw-r--r--  1 root  wheel   2076 Apr 16 13:32 rlconf.h
-rw-r--r--  1 root  wheel   1363 Apr 16 13:32 rlstdc.h
-rw-r--r--  1 root  wheel   3180 Apr 16 13:32 tilde.h
wvgi2# pwd
/usr/local/include/readline

and history.h is there.

Dorin


At 02:55 PM 4/16/2001 -0400, Tom Lane wrote:
>Dorin Grunberg <dorin@visgen.com> writes:
> > When I am running:
> > ./configure --with-perl --with-includes=/usr/local/include/readline
>                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>Try just --with-includes=/usr/local/include.  It shouldn't be necessary
>to point it directly at the readline subdirectory.
>
> > checking for readline/readline.h... (cached) yes
> > checking for readline/history.h... (cached) no
>
>Seems odd that you would have readline.h and not history.h.  What
>version of libreadline do you have installed, anyway?
>
>                         regards, tom lane


Re: Read line feature

From
Tom Lane
Date:
Dorin Grunberg <dorin@visgen.com> writes:
> When running:
> ./configure --with-perl --with-includes=/usr/local/include
> --with-libs=/usr/local/lib

> the output is this ... same as before.

Did you remove config.status first?  You're just getting cached
results from the prior run AFAICS.

            regards, tom lane

Re: Read line feature

From
Dorin Grunberg
Date:
That was it. :)

Than you very much Tom.

Dorin

At 03:32 PM 4/16/2001 -0400, Tom Lane wrote:
>Dorin Grunberg <dorin@visgen.com> writes:
> > When running:
> > ./configure --with-perl --with-includes=/usr/local/include
> > --with-libs=/usr/local/lib
>
> > the output is this ... same as before.
>
>Did you remove config.status first?  You're just getting cached
>results from the prior run AFAICS.
>
>                         regards, tom lane