據G大神資料得知只要是CentOS X.9版安裝XAMPP都會出問題,這是安裝XAMPP7.4..15啟動時出現以下錯誤訊息
cat: error while loading shared libraries: libc.so.6: 據G大神資料得知只要是CentOS X.9版安裝XAMPP都會出問題,這次是安裝XAMPP7.4..15啟動時出現以下錯誤訊息
cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
解決方案如下:
vim /opt/lampp/lampp
用筆記本打開編輯
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
把紅字那段改為
export LD_ASSUME_KERNEL=3.1.0
修改後更新檔案
再次啟用XAMPP
/opt/lampp/xampp restart
就能正常啟動了
Starting XAMPP for Linux 7.4.15-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.