简体   繁体   中英

xampp error while loading shared libraries

Just adding this for myself and others future reference.

Installed xampp for the first time and was getting this error when trying to run the startup script.

error while loading shared libraries: libc.so.6

The work around is to change the kernel version in the /opt/lampp/xampp script

##export LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL=3.11.6

xampp script is sets redhat kernel to 2.2.5 but mine is 3.11.6 found as follows

[root@2008pc etc]# rpm -q kernel
kernel-3.11.6-200.fc19.x86_64

Most probably you can find error at line number 50 in lampp script, it should looks like following:

if egrep "Fedora" /etc/redhat-release > /dev/null

For CentOS we need to replace Fedora with CentOS, after changing like looks like following:

if egrep "CentOS" /etc/redhat-release > /dev/null

After making above changes try to start lampp with following and it should work without any issue.

$ /opt/lampp/lampp start

or

./lampp start

where /opt/lampp is root directory of lampp server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM