Thread: readline configure error again
Hi again, I show more about the error when configuring. this is the message I get when running the "./configure" command. 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. I don't know about the headers. Thanks for your attention mike-af
On Mon, Jan 20, 2003 at 05:59:26PM +0100, mike wrote: > Hi again, > > I show more about the error when configuring. > > this is the message I get when running the "./configure" command. > > 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. It doesn't know where to find your readline headers and libraries. If you are compiling on a system with various packages (like RPM, .deb, whatever), you probably need to install the development version (it has the headers). If you compiled and installed yourself, you might want to use the --with-includes and --with-libs directives. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada <andrew@libertyrms.info> M2P 2A8 +1 416 646 3304 x110
I am also getting this error, I have just installed readline-4.2 and I am using this configure syntax ./configure --with-perl --prefix=/usr/local/pgsql7.3.1 --with-libraries='/usr/local/lib' --with-includes='/usr/local/include' libreadline.so is located in /usr/local/lib. System details: bash-2.03$ uname -a SunOS webdev1 5.8 Generic_108528-12 sun4u sparc SUNW,UltraAX-i2 Any ideas why this is not finding readline? Thanks for any help Adam > On Mon, Jan 20, 2003 at 05:59:26PM +0100, mike wrote: >> Hi again, >> >> I show more about the error when configuring. >> >> this is the message I get when running the "./configure" command. >> >> 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. > > It doesn't know where to find your readline headers and libraries. > > If you are compiling on a system with various packages (like RPM, > .deb, whatever), you probably need to install the development version > (it has the headers). > > If you compiled and installed yourself, you might want to use the > --with-includes and --with-libs directives. > > A -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Adam Witney <awitney@sghms.ac.uk> writes: > Any ideas why this is not finding readline? The error message does suggest looking into config.log ... My bet is either a search path problem or you are missing a required library (on some platforms libreadline depends on libtermcap, IIRC). regards, tom lane
I have looked in config.log, but unfortunately I am none the wiser.... The first appearance of readline looks like this... configure:5800: checking for readline configure:5837: gcc -o conftest -I/usr/local/include -L/usr/local/lib conftest.c -lreadline -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm >&5 ld: fatal: symbol `_init' is multiply-defined: (file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crti.o and file /usr/local/lib/libreadline.so); ld: fatal: symbol `_start' is multiply-defined: (file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crt1.o and file /usr/local/lib/libreadline.so); ld: fatal: symbol `_fini' is multiply-defined: (file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crti.o and file /usr/local/lib/libreadline.so); ld: fatal: symbol `_lib_version' is multiply-defined: (file /usr/ccs/lib/values-Xa.o and file /usr/local/lib/libreadline.so); ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status But I have no idea what the problem is or how to fix it..... Wouldn't the .... --with-libs=/usr/local/lib --with-includes=/usr/local/include ... part of the configure take care of any search path problems? Thanks for any help adam > The error message does suggest looking into config.log ... > > My bet is either a search path problem or you are missing a required > library (on some platforms libreadline depends on libtermcap, IIRC). > > regards, tom lane -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Ok, after some more fiddling and something I spotted on an R mailing list... I had built readline, but not as a shared library... So building readline thus ./configure make make install make shared make install-shared and then ./configure --with-perl --prefix=/usr/local/pgsql7.3.1 --with-libs=/usr/local/lib --with-includes=/usr/local/include ... make ... etc for postgresql, everything worked ok. Thanks adam > Adam Witney <awitney@sghms.ac.uk> writes: >> Any ideas why this is not finding readline? > > The error message does suggest looking into config.log ... > > My bet is either a search path problem or you are missing a required > library (on some platforms libreadline depends on libtermcap, IIRC). > > regards, tom lane -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
im just replying just to get this thing on record.. so if someone looks for the answer this would help.. try installing this thing.. libtermcap-devel-2.0.8-35.i386.rpm i really dont know why this package needed.. On Tuesday 21 January 2003 00:59, mike wrote: > Hi again, > > I show more about the error when configuring. > > this is the message I get when running the "./configure" command. > > 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. > > I don't know about the headers. > > Thanks for your attention > mike-af > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)