libreadline.so.6: cannot open shared object file 问题解决办法

问题描述:在centos 6.4 上执行reboot命令之后,系统启动失败,不能连接。去服务器机房,插上显示器与键盘,屏幕给出报错信息如下:

“setting up logical volume management: /sbin/lvm : error while loading shared libraries: 
ibreadline.so.6:cannot open shared object file :no such file or directory”

解决办法:

查看/lib/下的有可能有libreadline.so.6 ,可以做一个软链接下载ncurses-5.6.tat.gz,进去编译安装。然后下载readline-5.2.tar.gz,解压cd到其目录执行一定要按照下面第顺序,否则可能不成功。

$./configure --prefix=/usr --with-ncurses

$cd shlib

把Makefile里的SHLIB_LIBS = 改为 SHLIB_LIBS = -lncurses

$make

$sudo make install

$cd ..

$make

$sudo make install

解决之后 用ldd命令探测 ldd /sbin/lvm

linux-vdso.so.1 =>  (0x00007fff3e7ff000)
        libudev.so.0 => /lib64/libudev.so.0 (0x00000039b5c00000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00000039ad400000)
        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)

发现 lvm命令依赖的共享库 libreadline.so.6已经找到,问题解决,系统成功启动。去/usr/lib路径,发现libreadline.so的连接情况如下。

[[email protected] lib]# ll |grep libread
lrwxrwxrwx. 1 root root       16 2月  12 14:00 libreadline.so -> libreadline.so.6
lrwxrwxrwx. 1 root root       18 2月  12 14:00 libreadline.so.6 -> libreadline.so.6.3
-r-xr-xr-x. 1 root root   680132 2月  12 14:00 libreadline.so.6.3

参考文章:

CentOS 6.4中安装JLink及出现问题解决

ldd命令介绍http://jingyan.baidu.com/article/1e5468f92c2f02484961b7c2.html

时间: 2024-10-15 12:17:15

libreadline.so.6: cannot open shared object file 问题解决办法的相关文章

error while loading shared libraries: libreadline.so.5: cannot open shared object file:

错误信息: ftp: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory 解决办法: yum install -y readline-devel readline [[email protected] ~]# cd /usr/lib64/ [[email protected] lib64]# ll *libreadline

cannot open shared object file解决办法

Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - libjpeg.so.9: cannot open shared object file: No such file or directory in Unknown on line 0 locate libjpeg.so.9 将找到的路径加到/etc/ld.so.conf文件末尾,然后/sbin/ldconfig即可

ogg启动报错libnnz11.so: cannot open shared object file

当ogg软件解压,并给予正确的权限后,在启动ogg时会遇到如下报错: [[email protected] ogg]# ./ggsci./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory 这里是因为缺少libnnz11.so库文件造成的,需要给出此库文件的位置,解决如下: [Oracle@oggtest ogg]$

libuuid.so: cannot open shared object file: No such file or directory

在玩ngx-lua时候有个 resty-uuid 需要引用 libuuid.so 动态库 打印log提示信息是这样的: libuuid.so: cannot open shared object file: No such file or directory 解决方案: [[email protected] ~]#yum install libuuid libuuid-devel [[email protected] ~]#ln -s /lib64/libuuid.so.1.3.0 /usr/l

ArchLinux 下 virtualbox 报错 libQtCore.so.4: cannot open shared object file

VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQtCore.so.4: cannot open shared object file: No such file or directory

ubuntu解决libstdc++.so.6: cannot open shared object file: No such file or directory:问题

解决libstdc++.so.6: cannot open shared object file: No such file or directory:原因在于,在13.10 版本中,ia32_libs 被废弃了导致没有32位的lib库.解决方法sudo apt-get install lib32stdc++6sudo apt-get install lib32z1

libdb2.so.1: cannot open shared object file: No such file or directory

[[email protected] bin]# ./dsmserv ./dsmserv: error while loading shared libraries: libdb2.so.1: cannot open shared object file: No such file or directory [[email protected] bin]# pwd /opt/tivoli/tsm/server/bin Resolving the problem The below steps m

OGG登陆报cannot open shared object file错误处理

1.错误现象 Linux服务器上,新安装的goldengate(OGG),使用./ggsci登 陆控制台报出./ggsci: error while loading shared libraries: libnnz11.so: cannotopen shared object file: No such file or directory错误. 2.原因分析 因为运行OGG的用户的没有设置LD_LIBRARY_PATH环境变量,或设置不正确所致. 3.解决方法: 在.bash_profile中增

启动MongoDB时,提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

启动MongoDB时,提示: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [[email protected] ~]# /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data --logpath /usr/local/mongodb/logs/mon