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
到此問題就已經解決!