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

Source: Internet
Author: 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] #
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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.