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] #
See the figure, get it, or report an error.
Run the following command: ldd/usr/bin/vim.
Execution result:
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)
Solution: Install the gpm and gpm-devel packages directly.
Run the command: yum install gpm-devel-y
If the above picture is displayed, the installation is successful!
Execute the trail again:
Run the following command: ldd/usr/bin/vim.
This problem has been solved!