我在 Centos 上安装了 lampp 5.6.28。 yum 更新后,由于以下错误,我无法停止/启动 lampp:
[root@giunone2 lampp]# ./lampp stop
egrep: 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
/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
/opt/lampp/bin/gettext: 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: /opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
apachectl returned 127.
/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
/opt/lampp/bin/gettext: 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
XAMPP: cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
kill returned 1.
问题解决方案我发现删除以下行一切都恢复正常
导出 LD_ASSUME_KERNEL=2.2.5
答案1
如果任何版本的 Redhat 或 Centos 中有 9 (cat /etc/redhat-release),就会发生此问题。如上所述,编辑/opt/lampp/lampp并注释掉export LD_ASSUME_KERNEL=2.2.5。
答案2
我必须做一些与上面有点不同的事情——但我非常非常感谢上面的帖子。我尝试了上面的两个修复,但使用 CentOS 6 时出现错误。
当我在 /opt/lampp/lampp 脚本中注释掉上面提到的整个部分时,XAMPP 现在可以正确启动并运行——从“我们有那个新的红帽......”到并包括“fi ”。注释每一行,然后尝试启动 XAMPP 堆栈。
答案3
在进行更改之前至少备份/复制原始 xampp 文件
我的系统曾经CentOS Linux release 7.9.2009 (Core)
有过同样的问题
我从行中删除了整个代码块第441章到第445章让它发挥作用
# do we have that new red hat linux 9 with posix native threads?
if test $(osguess) = "rh9"
then
# for now disable PNTL. if PNTL gets more popular we will support it. - oswald [8apr3]
export LD_ASSUME_KERNEL=2.2.5
#echo "XAMPP: DISABLE PNTL..."
fi
答案4
编辑/opt/lampp/lampp
评论第436行
#export LD_ASSUME_KERNEL=2.2.5
取消注释第 437 行
echo "XAMPP: DISABLE PNTL..."