vim: error while loading shared libraries: /usr/lib/libgpm.s

來源:互聯網
上載者:User

vim: error while loading shared libraries: /usr/lib/libgpm.s

[root@localhost etc]# vim my.cnf
vim: error while loading shared libraries: /usr/lib/libgpm.so.2: file too short
[root@localhost etc]#
看圖,弄了下,還是報錯

執行命令:ldd /usr/bin/vim

執行結果:

linux-vdso.so.1 => (0x00007fffaedff000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fcd1ec69000)
libncurses.so.5 => /lib64/libncurses.so.5 (0x00007fcd1ea46000)
libacl.so.1 => /lib64/libacl.so.1 (0x00007fcd1e83e000)
libgpm.so.2 => not found
libperl.so => /usr/lib64/perl5/CORE/libperl.so (0x00007fcd1e2cc000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fcd1e0b2000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fcd1deaf000)
libc.so.6 => /lib64/libc.so.6 (0x00007fcd1db1a000)
libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007fcd1d774000)
libm.so.6 => /lib64/libm.so.6 (0x00007fcd1d4f0000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fcd1d2eb000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007fcd1d0ca000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcd1cead000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcd1ee91000)
libattr.so.1 => /lib64/libattr.so.1 (0x00007fcd1cca7000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fcd1ca8e000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fcd1c857000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fcd1c5df000)

解決辦法:直接安裝gpm和gpm-devel包

執行命令:yum install gpm gpm-devel -y

如果出現以上畫面表示安裝成功!

再次執行跟蹤:

執行命令:ldd /usr/bin/vim

到此問題就已經解決!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.