vim: error while loading shared libraries: /lib64/libgpm.so.2: file too short解决过程

[root@localhost ~]# vim a
vim: error while loading shared libraries: /lib64/libgpm.so.2: file too short
解决过程如下:

1、先搜索了一下该软件是哪个包提供的

[root@localhost ~]# yum provides *libgpm.so.2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.aliyun.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    epel/x86_64/filelists | 10 MB 00:00:00
    gpm-libs-1.20.7-5.el7.i686 : Dynamic library for for the gpm
    Repo : base
    Matched from:
    Provides : libgpm.so.2
    Filename : /usr/lib/libgpm.so.2

gpm-libs-1.20.7-5.el7.x86_64 : Dynamic library for for the gpm
Repo : base
Matched from:
Filename : /usr/lib64/libgpm.so.2

gpm-libs-1.20.7-5.el7.x86_64 : Dynamic library for for the gpm
Repo : @/
Matched from:
Filename : /usr/lib64/libgpm.so.2
2、将该软件包重新安装了一下

[root@localhost ~]# yum reinstall -y gpm-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.aliyun.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    Resolving Dependencies
    –> Running transaction check
    —> Package gpm-libs.x86_64 0:1.20.7-5.el7 will be reinstalled
    –> Finished Dependency Resolution

Dependencies Resolved

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

Reinstalling:
gpm-libs x86_64 1.20.7-5.el7 base 32 k

Transaction Summary

Reinstall 1 Package

Total download size: 32 k
Installed size: 27 k
Downloading packages:
gpm-libs-1.20.7-5.el7.x86_64.rpm | 32 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gpm-libs-1.20.7-5.el7.x86_64 1/1
Verifying : gpm-libs-1.20.7-5.el7.x86_64 1/1

Installed:
gpm-libs.x86_64 0:1.20.7-5.el7

Complete!
3、再使用vim的时候又出现了另外一个问题

[root@localhost ~]# vim a
vim: error while loading shared libraries: /usr/lib64/perl5/CORE/libperl.so: file too short
4、将提供该文件的包也重新安装了一下

[root@localhost ~]# yum reinstall -y perl-libs
5、更新yum仓库

[root@localhost ~]# yum update
6、生成缓存

[root@localhost ~]# yum makecache
7、先卸载vim,然后重新安装vim

[root@localhost ~]# yum remove -y vim*
[root@localhost ~]# yum install -y vim*
8、之后可以正常使用

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值