Problem Description: After executing the reboot command on CentOS 6.4, the system failed to start and cannot be connected. Go to the server room, plug in the display and keyboard, the screen gives the error message as follows:
"Setting up Logical Volume Management:/sbin/lvm:error while loading gkfx libraries:ibreadline.so.6:cannot open Share D object file:no such file or directory "
Workaround:
View/lib/under the possibility of a libreadline.so.6, you can do a soft link download ncurses-5.6.tat.gz, go to compile the installation. Then download readline-5.2.tar.gz, unzip the CD to its directory to perform the following order, or it may not succeed.
$./configure--prefix=/usr--with-ncurses
$CD Shlib
Change the shlib_libs in makefile = to Shlib_libs =-lncurses
$make
$sudo make Install
$CD:
$make
$sudo make Install
Probe LDD/SBIN/LVM with ldd command after resolving
Linux-vdso.so.1 = (0x00007fff3e7ff000) libudev.so.0 =/lib64/libudev.so.0 ( 0x00000039b5c00000) libdl.so.2 =/lib64/libdl.so.2 (0x00000039ad400000) & nbsp libdevmapper-event.so.1.02 =/lib64/libdevmapper-event.so.1.02 (0x00000039ad000000) libdevmapper.so.1.02 =/lib64/libdevmapper.so.1.02 (0x00000039b7800000) libreadline.so.6 =/usr/lib/libreadline.so.6 (0x00007fa8d90a0000) libc.so.6 =/lib64 /libc.so.6 (0x00000039acc00000) /lib64/ld-linux-x86-64.so.2 (0x00000039ac800000) libselinux.so.1 =/lib64/libselinux.so.1 (0x00000039ae800000) Libsepol.so.1 =/lib64/libsepol.so.1 (0x00000039b6800000) libncurses.so.5 =/lib64/ Libncurses.so.5 (0x00000039ae400000) Libtinfo.so.5 =/lib64/libtinfo.so.5 (0x00000039af400000)
found that the LVM command relies on the shared library libreadline.so.6 has been found, the problem is resolved, the system started successfully. Go to/usr/lib Path and find the connection of libreadline.so as follows.
[email protected] lib]# ll |grep libreadlrwxrwxrwx. 1 root root 16 February libreadline.so-libreadline.so.6lrwxrwxrwx. 1 root root 18 February Lib Readline.so.6, Libreadline.so.6.3-r-xr-xr-x. 1 root root 680132 February libreadline.so.6.3
Reference article:
Installation of Jlink in CentOS 6.4 and problem solving
LDD Command Introduction http://jingyan.baidu.com/article/1e5468f92c2f02484961b7c2.html
Libreadline.so.6:cannot open Shared Object file Problem solving method