Centosのlampp - 停止/開始できません。 - /opt/lampp/bin/gettext: 共有ライブラリのロード中にエラーが発生しました: libc.so.6

Centosのlampp - 停止/開始できません。 - /opt/lampp/bin/gettext: 共有ライブラリのロード中にエラーが発生しました: libc.so.6

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を編集し、エクスポートLD_ASSUME_KERNEL=2.2.5をコメントアウトします。

おすすめ記事