Thread: Readline lib configure error. Help

Readline lib configure error. Help

From
Roman Avdeenko
Date:
Hi!
Use RH Linux90.
Try configure postgresql-7.4.1

Type ./configure

Error is
checking for readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.

But I want use readline

This is config.log

configure:5999: checking for readline
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -g
-D_GNU_SOURCE    conftest.c -lreadline -lcrypt -lresolv -lnsl -ldl -lm
-lbsd
 >&5/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `tgetnum'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `tgoto'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `tgetflag'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `BC'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `tputs'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `PC'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `tgetent'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `UP'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so:
undefined reference to `tgetstr'
collect2: ld returned 1 exit status

Have installed readline-4.3-5, readline41-4.1-16, readline-devel-4.3-5
Thank you.

Re: Readline lib configure error. Help

From
Tom Lane
Date:
Roman Avdeenko <rav@ih.net.ua> writes:
> Use RH Linux90.
> Try configure postgresql-7.4.1
> Type ./configure
> Error is
> checking for readline... no

It works for me on a stock RHL 9 machine (or I think it's stock, anyway,
it's not my machine...).

> Have installed readline-4.3-5, readline41-4.1-16, readline-devel-4.3-5

This machine has

$ rpm -qa | grep readline
readline-4.3-5
readline-devel-4.3-5
$

Maybe the presence of two different readline versions is confusing
matters on your machine?

            regards, tom lane

Re: Readline lib configure error. Help

From
Reece Hart
Date:
On Wed, 2004-01-21 at 08:41, Roman Avdeenko wrote:
Use RH Linux90.
Try configure postgresql-7.4.1>&5/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: 
undefined reference to `tgetnum'

Roman-

This also works for me on RH9.0 (athlon). While configuring, I get
    checking for readline... yes (-lreadline -ltermcap)


The symbols you're apparently missing are usually provided by termcap, curses, or ncurses. I suspect you're missing one of them or, worse, they're corrupted.

Some things to try:

1) Verify that you've got termcap installed and that it's okay. Do 'rpm -V termcap'. No output is good, everything else is suspect. Install if not present.

2) If you don't need rl4.1, consider doing rpm -e readline41. That's probably not your problem, but it's easy to eliminate.

3) Do 'rpm -V readline readline-devel'. Again, no output is good, otherwise investigate the issue. Install if missing.

4) Ensure that your environment doesn't have C_INCLUDE_PATH, LIBRARY_PATH, or LD_LIBRARY_PATH set (try 'env|grep path').

5) I've attached a list of rpms on my machine (rpm -qa|sort). comm this file with a similar list from your machine. Perhaps something will stand out.


Good luck,
Reece

-- 
Reece Hart, http://www.in-machina.com/~reece/, GPG:0x25EC91A0
Attachment

Re: Readline lib configure error. Help

From
Reece Hart
Date:
On Thu, 2004-01-22 at 09:40, Reece Hart wrote:

> 4) Ensure that your environment doesn't have C_INCLUDE_PATH,
> LIBRARY_PATH, or LD_LIBRARY_PATH set (try 'env|grep path').


Ooops... that's 'env|grep PATH' (in capitals)


--
Reece Hart, http://www.in-machina.com/~reece/, GPG:0x25EC91A0