centos7.6 安装 rlwrap-0.45报 Requires: /usr/bin/python3

centos7

问题概述

方便翻找历史命令

问题原因

解决方案

1、安装python3 ,readline

2、下载 rlwrap-0.45.2-2.el7.x86_64.rpm

安装时报:

[root@opengauss01 ~]# yum -y install rlwrap-0.45.2-2.el7.x86_64.rpm 
Loaded plugins: fastestmirror
Examining rlwrap-0.45.2-2.el7.x86_64.rpm: rlwrap-0.45.2-2.el7.x86_64
Marking rlwrap-0.45.2-2.el7.x86_64.rpm to be installed
Resolving Dependencies
–> Running transaction check
—> Package rlwrap.x86_64 0:0.45.2-2.el7 will be installed
–> Processing Dependency: /usr/bin/python3 for package: rlwrap-0.45.2-2.el7.x86_64
Loading mirror speeds from cached hostfile
–> Processing Dependency: perl(File::Slurp) for package: rlwrap-0.45.2-2.el7.x86_64
–> Running transaction check
—> Package perl-File-Slurp.noarch 0:9999.19-6.el7 will be installed
—> Package rlwrap.x86_64 0:0.45.2-2.el7 will be installed
–> Processing Dependency: /usr/bin/python3 for package: rlwrap-0.45.2-2.el7.x86_64
–> Processing Dependency: /usr/bin/python3 for package: rlwrap-0.45.2-2.el7.x86_64
–> Finished Dependency Resolution
Error: Package: rlwrap-0.45.2-2.el7.x86_64 (/rlwrap-0.45.2-2.el7.x86_64)
           Requires: /usr/bin/python3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

查找 /usr/bin/python3 确实存在

[root@opengauss01 ~]# ls -l  /usr/bin/python3 
lrwxrwxrwx. 1 root root 32 Oct  7 10:24 /usr/bin/python3 -> /usr/python3.6.11/bin/python3.10

需要执行

[root@opengauss01 ~]# yum reinstall centos-release

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
–> Running transaction check
—> Package centos-release.x86_64 0:7-6.1810.2.el7.centos will be reinstalled
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================================================================================
 Package                                                    Arch                                               Version                                                              Repository                                             Size

Reinstalling:
 centos-release                                             x86_64                                             7-6.1810.2.el7.centos                                                rhel-ol74                                              26 k

Transaction Summary

Reinstall  1 Package

Total download size: 26 k
Installed size: 40 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : centos-release-7-6.1810.2.el7.centos.x86_64              

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值