Configure Error Cannot Link Readline Library
Contents |
pgsql-announce pgsql-bugs pgsql-docs pgsql-general pgsql-interfaces pgsql-jobs pgsql-novice pgsql-performance pgsql-php pgsql-sql pgsql-students Developer lists Regional lists Associations User groups Project lists Inactive lists IRC
Configure Error Readline Library Not Found
Local User Groups Featured Users International Sites Propaganda Resources Weekly postgresql configure error readline library not found News ./configure error - readline library not found From: Michael Teter
Libreadline-dev
error - readline library not found Date: 2003-10-24 19:28:34 Message-ID: 3F997D62.3070401@1scom.net (view raw or whole thread) Thread: 2003-10-24 19:28:34 from Michael Teter
faq • rss Community Log In Sign Up Add New Post Question: (Closed) Can not
Configure: Error: Systemd System Unit Directory Is Required
find readline library when installing R 0 17 months ago by configure error readline library not found redhat Ct586 • 460 China Ct586 • 460 wrote: Hi, all, When I was configuring R (R-3.2.0
Configure Error Zlib Library Not Found Postgresql
and R-3.1.1), I met the following problems. ``` checking readline/history.h usability... yes checking readline/history.h presence... yes checking for readline/history.h... yes checking readline/readline.h usability... yes checking readline/readline.h https://www.postgresql.org/message-id/3F997D62.3070401@1scom.net presence... yes checking for readline/readline.h... yes checking for rl_callback_read_char in -lreadline... no checking for main in -lncurses... no checking for main in -ltermcap... no checking for main in -ltermlib... no checking for rl_callback_read_char in -lreadline... no checking for history_truncate_file... no configure: error: --with-readline=yes (default) and headers/libs are not available However, I have https://www.biostars.org/p/138792/ readline installed in ~/softwares/readline-6.3/install , and ~/softwares/readline-6.3/install/lib in LD_LIBRARY_PATH , and ~/softwares/readline-6.3/install/include in C_INCLUDE_PATH . Files listed as below: bin include lib share ./bin: ./include: readline ./include/readline: chardefs.h history.h keymaps.h readline.h rlconf.h rlstdc.h rltypedefs.h tilde.h ./lib: libhistory.a libhistory.so libhistory.so.6 libhistory.so.6.3 libreadline.a libreadline.so libreadline.so.6 libreadline.so.6.3 readline.so Here is another error, I wonder if there is anything wrong about libreadline.so. $ ld readline-6.3/install/lib/libreadline.so ld: warning: cannot find entry symbol _start; not setting start address readline-6.3/install/lib/libreadline.so: undefined reference to `PC' readline-6.3/install/lib/libreadline.so: undefined reference to `tgetflag' readline-6.3/install/lib/libreadline.so: undefined reference to `tgetent' readline-6.3/install/lib/libreadline.so: undefined reference to `UP' readline-6.3/install/lib/libreadline.so: undefined reference to `tputs' readline-6.3/install/lib/libreadline.so: undefined reference to `tgoto' readline-6.3/install/lib/libreadline.so: undefined reference to `tgetnum' readline-6.3/install/lib/libreadline.so: undefined reference to `BC' readline-6.3/install/lib/libreadline.so: undefined reference to `tgetstr My operation system is: Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 00:31:26 UTC 2013 I wonder why `configure` of R can not find the librea
to help with Readline installation. Most Linux installations will have the readline library installed already and all you need to do is http://www.bioinf.org.uk/software/profit/doc/node17.html uncomment the two lines in the Makefile: READLINE = -DREADLINE_SUPPORT READLINELIB = -lreadline -lcurses On recent versions of Linux, if this doesn't work, then you may have to http://forum.tinycorelinux.net/index.php?topic=5230.0 install the readline development libraries with a command like: yum install readline-devel (RPM-based systems) apt-get install libreadline5-dev (Debian-based systems) If this doesn't work, or you are using another Unix configure error system then proceed as follows: Download the latest version of GNU readline from http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html At the time of writing, this is readline-6.0.tar.gz Unpack the gzipped tar file under /tmp cd /tmp tar -zxvf readline-6.0.tar.gz Change to the directory this creates and run configure: cd readline-6.0 ./configure If you do not have write access to the /usr/local/ hierarchy, then library not found you can install the files somewhere else: ./configure --prefix=/home/my-user-name/packages Now build the readline library make and install (become superuser first if installing under /usr/local) make install Now, ensure that the directory where the library has been installed (/usr/local/lib/ by default) is in the search path. You can do this by setting the environment variable LD_LIBRARY_PATH (csh) setenv LD_LIBRARY_PATH /usr/local/lib (sh) export LD_LIBRARY_PATH=/usr/local/lib Alternatively, if you have root access, you can edit the file /etc/ld.so.conf to add the directory in which the library has been installed. Under recent Linux installations, there is another alternative which is to create a file /etc/ld.so.conf.d/readline.conf just containing a single line with the directory where the library has been installed. In either case, you must now (as root) type the command: /sbin/ldconfig Now, modify the Makefile, such that this directory is in the linker's library path. Change: READLINELIB = -lreadline -lcurses to: READLINELIB = -L/usr/local/lib -lreadline -lcurses Now build with make as usual, but endure that LD_LIBRARY_PATH is set whenever you want to run the program. Alternativ
piCore-8.0 is available! Home Help Login Register Tiny Core Linux » Tiny Core Extensions » TCE Q&A Forum » Readline « previous next » Print Pages: [1] Go Down Author Topic: Readline (Read 1657 times) 4-stroke Jr. Member Posts: 72 Readline « on: March 05, 2010, 06:46:41 AM » I'm trying to compile fim from here:http://mirrors.aixtools.net/sv/fbi-improved/Configure complains:Code: [Select]checking for rl_replace_line in -lreadline... no
configure: error: *** GNU readline library headers not found ! please install them or run ./configure --disable-readline ***I've installed readline.tcz and readline-dev.tcz. Logged A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams Jason W Administrator Hero Member Posts: 9067 Re: Readline « Reply #1 on: March 05, 2010, 06:51:15 AM » Did you set the pkg-config path as mentioned here?http://wiki.tinycorelinux.com/tiki-index.php?page=Creating+Extensionsspecifically-export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig Logged 4-stroke Jr. Member Posts: 72 Re: Readline « Reply #2 on: March 05, 2010, 06:57:48 AM » Quote from: Jason W on March 05, 2010, 06:51:15 AMDid you set the pkg-config path as mentioned here?http://wiki.tinycorelinux.com/tiki-index.php?page=Creating+Extensionsspecifically-export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfigYes I did. And the compiler flags. Logged A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams Juanito Administrator Hero Member Posts: 8604 Re: Readline « Reply #3 on: March 05, 2010, 07:00:13 AM » Have a look in config.log - sometimes the error message does not exactly match the actual error that occurred. Logged 4-stroke Jr. Member Posts: 72 Re: Readline « Reply #4 on: March 05, 2010, 07:12:03 AM » There's this:Code: [Select]configure:10798: checking for r