xampp 5.6.28-1版本的一个问题 以及解决方案

阿里云装的centos7.3  装上xampp提示找不到libc.so.6 

error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

网上找了一下解决办法

vi /opt/lampp/lampp

找到export LD_ASSUME_KERNEL=2.2.5这一行,

并修改内容为export LD_ASSUME_KERNEL=2.8.0,保存退出就可以解决了。

当然修改为不低于2.6.32的其他值也可以,比如2.6.32

为什么存在这个问题:

What is LD_ASSUME_KERNEL all about?

The environment variable LD_ASSUME_KERNEL can be set to a value that indicates the kernel OS API version an application is compatible with and is used by the Linux Dynamic Linker/Loader for determining what directory paths to use when loading the Standard C Library (GLIBC or libc.so.6). This is the primary mechanism for dealing with backwards compatibility for applications written for older Linux versions.

Here are the directory paths that are chosen based on the setting of LD_ASSUME_KERNEL:

/lib/libc.so.6

/lib/i686/libc.so.6

/lib/tls/libc.so.6

One of the primary distinguishers of features is the difference between the older LinuxThreads POSIX threading model and the newer threading model NPTL (Native POSIX Thread Library). This can be determined as follows on a Linux BASH command line;

 

posted @ 2017-09-12 14:56  rain_hu  阅读(423)  评论(0编辑  收藏  举报