error while loading shared libraries: libc.so.6

今天阿里云服务器上只是升级了下内存,结果lampp却启动不了,升级之前也没有安全的停止服务:

重启lampp服务报如下错误:

[root@hadoop-slave2 lib64]# /opt/lampp/xampp startmysql

rh9
egrep: error while loading shared libraries: libc.so.6: cannot open shared object f ile: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
id: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/opt/lampp/share/xampp/xampplib: line 11: test: -ne: unary operator expected
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
XAMPP: hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
netstat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

网上找了下解决该问题的办法:

vim /opt/lampp/xampp

替换以下内容为;
if egrep "9 " /etc/redhat-release > /dev/null
if egrep "Red" /etc/redhat-release > /dev/null

重启服务:

/opt/lampp/xampp start

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容