error while loading shared libraries: /usr/lib64/libc.so.6: invalid ELF header

在安装一个程序的时候提示libc.so.6过旧,但是查看libc.so的版本是最新的,于是尝试使用尝试软链接  ln -s /usr/lib64/libc.so /usr/lib64/libc.so.6 , 悲剧的事情发生了!

几乎所有的linux命令都依赖于libc.so,libc.so.6是一个动态链接库文件,是GNU C Library的一个共享函数库,软链接到不同的版本上才能起作用。

google的一番,发现很多同学进入了linux rescue急救模式进行文件替换,复制等。好吧,哥也试了一下,不行。

于是继续google,偶然发现有同学用了 /sbin/sln命令,并且发现 在 /lib64/目录下只有一个libc.so.6,于是

/sbin/sln /lib64/libc.so.6 /usr/lib64/libc.so.6 将软链接重新定向到这个libc.so.6,问题解决

时间: 2024-10-19 20:58:46

error while loading shared libraries: /usr/lib64/libc.so.6: invalid ELF header的相关文章

mysql 初始化报错 /usr/local/mysql/bin/mysqld:error while loading shared libraries :libaio.so.1

安装mysql在初始化的时候,出现/usr/local/mysql/bin/mysqld:error while loading shared libraries:libaio.so.1 :cannot open shared object file:NO such file or directory 解决方法: <P>type the following</P> <P>apt-get install libaio1 libaio-dev</P> <P

centos6.9安装xampp后报错:egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

1.centos6.9安装xampp(xampp-linux-x64-7.0.21-0-installer.run)后启动的时候,报错: egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directoryegrep: error while loading shared libraries: libc.so.6: cannot open

Nginx 启动出错 error while loading shared libraries: libpcre.so.1

在 centos 6.5  64位上编译安装nginx1.63语法检查出错[root @localhost conf]# /usr/local/nginx/sbin/nginx -t /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误看出是缺少lib文件导致,进一步

nginx error while loading shared libraries

linux 64位安装nginx后启动出错报以下错误 [root @localhost nginx- 1.3 . 0 ]# /usr/local/nginx/sbin/nginx error while loading shared libraries: libpcre.so. 1 : cannot open shared object file: No such file or directory 从错误看出是缺少lib文件导致,进一步查看下 [root @localhost nginx- 1

Nginx启动出错 error while loading shared libraries

[[email protected] ~]#  /usr.local/nginx/sbin/nginx -c conf/nginx.conf sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误看出是缺少libpcre.so.1文件导致 [[email protected] nginx]# ldd $

error while loading shared libraries: libevent-2.0.so.5解决办法

CentOS下如何安装libevent 1.下载安装包 新版本是libevent-2.0.10-stable.(如果你的系统已经安装了libevent,可以不用安装)官网:http://www.monkey.org/~provos/libevent/下载:http://www.monkey.org/~provos/libevent-2.0.10-stable.tar.gz 2.解压 # tar zxvf libevent-2.0.10-stable.tar.gz 3.进入目录# cd libev

memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决

1.检查memcached是否正常运行 #ps aux | grep memcached #或者 #telnet localhost 11211 会显示memcached的基本信息 如果启动时出现“memcached: error while loading shared libraries:libevent-2.0.so.5: cannot open shared object file: No such file or directory”之类的信息,表示memcached 找不到 libe

动态链接库找不到 : error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory

问题: 运行gsl(GNU scientific Library)的函数库,用 gcc erf.c -I/usr/local/include -L/usr/local/lib64 -L/usr/local/lib -g -Wall --std=gnu99 -lgsl -lgslcblas -o m.o 编译,之后运行./m.o 提示error while loading shared libraries: libgsl.so.0: cannot open shared object file:

解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误

解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误 今天安装启动nginx的时候报这个错误:error while loading shared libraries: libgd.so.2: cannot open shared object,网上查了相关资料,解决了,在此记录下,也让后面遇到这个问题的朋友能快速解决. 先说解决办法,帮助着急解决问题的朋友,这个是因为缺失gd库,