Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yum showing readline installed but readline command not working

yum My system shows readline installed

rlwrap-0.41]$ sudo yum install readline
Loaded plugins: fastestmirror, presto, security
Loading mirror speeds from cached hostfile
.
.
.
Package readline-6.0-4.el6.x86_64 already installed and latest version
Nothing to do

But when I run readline command it doesn't work

-bash: readline: command not found

I thought command binary may not be on path so tried searching for it but no luck..!!

sudo find /usr/ -iname readline

basically I'm trying to install http://freecode.com/projects/rlwrap/ and the configure is failing saying readline library is not found.

like image 628
Akshay Hiremath Avatar asked Sep 30 '14 20:09

Akshay Hiremath


People also ask

How do I know if readline is installed?

To check which version of readline is installed, use pip show readline or pip3 show readline in your Linux terminal.

What is libreadline7?

package: libreadline Name: libreadline Version: 7.0-1 Description: The Readline library provides a set of functions for use by applications\\ that allow users to edit command lines as they are typed in. Both Emacs\\ and vi editing modes are available.

What is readline in C?

The function readline () prints a prompt and then reads and returns a single line of text from the user. The line readline returns is allocated with malloc () ; you should free () the line when you are done with it. The declaration for readline in ANSI C is. char *readline (char * prompt );

What is a readline version?

Readline is free software, distributed under the terms of the GNU General Public License, version 3. This means that if you want to use Readline in a program that you release or distribute to anyone, the program must be free software and have a GPL-compatible license.


1 Answers

"readline" is not a command.

If you are trying to build software that uses the readline library then you need to install readline-devel.

like image 175
Ignacio Vazquez-Abrams Avatar answered Oct 21 '22 14:10

Ignacio Vazquez-Abrams