简体   繁体   English

无法在 Linux 中安装 expect 实用程序

[英]Unable to install expect utility in Linux

I'm trying to install expect utility in my Linux machine, using below command:我正在尝试使用以下命令在我的 Linux 机器上安装expect实用程序:

sudo yum install expect

But getting below error:但得到以下错误:

# sudo yum install expect
Configuration file /etc/yum/pluginconf.d/blacklist.conf not found
Unable to find configuration file for plugin blacklist
Configuration file /etc/yum/pluginconf.d/fastestmirror.conf not found
Unable to find configuration file for plugin fastestmirror
Configuration file /etc/yum/pluginconf.d/product-id.conf not found
Unable to find configuration file for plugin product-id
Configuration file /etc/yum/pluginconf.d/refresh-packagekit.conf not found
Unable to find configuration file for plugin refresh-packagekit
Configuration file /etc/yum/pluginconf.d/rhui-lb.conf not found
Unable to find configuration file for plugin rhui-lb
Configuration file /etc/yum/pluginconf.d/subscription-manager.conf not found
Unable to find configuration file for plugin subscription-manager
Configuration file /etc/yum/pluginconf.d/whiteout.conf not found
Unable to find configuration file for plugin whiteout
Loaded plugins: rhnplugin

I googled over the internet for this issue , but no clue.我在互联网上搜索了这个问题,但没有任何线索。

Any help is most welcome.任何帮助都是最受欢迎的。

I think you should consider installing a newer version of RedHat.我认为您应该考虑安装较新版本的 RedHat。 The 4.x is no longer supported.不再支持 4.x。 One idea though, is if you still want to use your version of RedHat, is to install expect directly from the CD.不过,一个想法是,如果您仍想使用您的 RedHat 版本,则直接从 CD 安装 expect。

You could install from source.您可以从源代码安装。 You'll have to start with Tcl ( https://tcl.tk/software/tcltk/download.html ), then do Expect ( https://core.tcl.tk/expect/index )您必须从 Tcl ( https://tcl.tk/software/tcltk/download.html ) 开始,然后执行 Expect ( https://core.tcl.tk/expect/index )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM