美文网首页
vim: error while loading shared

vim: error while loading shared

作者: 东洋_ec1f | 来源:发表于2019-04-08 11:02 被阅读0次

问题现象:

使用vim打开文件无反应:

[root@bogon ~]# vim a ----无反应

[root@bogon ~]# yum reinstall -y vim ----重装vim**

重装后,使用vim报如下错误:

[root@bogon ~]# vim a

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

解决办法:

使用yum provides命令查询这个库文件是哪个包生成的:

[root@bogon ~]# 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

extras/x86_64/filelists_db                                                                                          | 236 kB  00:00:00   

updates/x86_64/filelists_db                                                                                        | 2.7 MB  00:00:00   

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这个包生成,

[root@bogon ~]# yum reinstall -y gpm-libs-1.20.7-5.el7.x86_64 ----重装这个包,问题解决;

相关文章

网友评论

      本文标题:vim: error while loading shared

      本文链接:https://www.haomeiwen.com/subject/appvsqtx.html