bash yum 显示已安装 readline 但 readline 命令不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26129623/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 11:26:43  来源:igfitidea点击:

yum showing readline installed but readline command not working

bashcentosreadlinelibreadlinerlwrap

提问by Akshay Hiremath

yum My system shows readline installed

yum 我的系统显示已安装 readline

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 readlinecommand it doesn't work

但是当我运行readline命令时它不起作用

-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.

基本上我正在尝试安装http://freecode.com/projects/rlwrap/并且配置失败,说没有找到 readline 库。

回答by Ignacio Vazquez-Abrams

"readline" is not a command.

“readline”不是命令。

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

如果您正在尝试构建使用 readline 库的软件,那么您需要安装readline-devel.

回答by Akshay Hiremath

Got it !! Readline development package needs to be installed. After installing it. I got what i wanted.. sudo yum install readline-devel

知道了 !!需要安装Readline开发包。安装后。我得到了我想要的.. sudo yum install readline-devel