centos6.9安装xampp后报错:egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
1、centos6.9安装xampp(xampp-linux-x64-7.0.21-0-installer.run)后启动的时候,报错:
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
basename: 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
start
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
startapache
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
startmysql
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
startftp
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
stop
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
stopapache
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
stopmysql
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
stopftp
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
reload
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
reloadapache
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
reloadmysql
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
reloadftp
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
restart
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
security
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
enablessl
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
disablessl
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
backup
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
oci8
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
panel
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
2、有人说少了glibc包,32/64的都安装了,然并卵
[admin@19-56 lampp]$ yum list glibc
Loaded plugins: fastestmirror
Determining fastest mirrors
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
jenkins | 2.9 kB 00:00
jenkins/primary_db | 99 kB 00:23
updates | 3.4 kB 00:00
updates/primary_db | 2.5 MB 00:00
zabbix | 951 B 00:00
zabbix/primary | 8.4 kB 00:00
zabbix 57/57
zabbix-non-supported | 951 B 00:00
Installed Packages
glibc.x86_64 2.12-1.209.el6_9.1 @updates
Available Packages
glibc.i686 2.12-1.209.el6_9.2 updates
glibc.x86_64 2.12-1.209.el6_9.2 updates
[admin@19-56 lampp]$ ./xampp
3、千辛万苦还是找到了答案:
vi /opt/lampp/lampp
找到export LD_ASSUME_KERNEL=2.2.5这一行,
并修改内容为export LD_ASSUME_KERNEL=2.8.0,保存退出就可以解决了。
当然修改为不低于2.6.32的其他值也可以,比如2.6.32
下图是系统的内核版本:2.6.32
4、找了下这个设置的资料解释,原来这个配置是为了旧操作系统的一些兼容性问题
LD_ASSUME_KERNEL
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;
- developer@linux:~> /lib/libc.so.6
- GNU C Library stable release version 2.3.5 (20050802), by Roland McGrath et al.
- Copyright (C) 2005 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions.
- There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
- PARTICULAR PURPOSE.
- Configured for i686-suse-linux.
- Compiled by GNU CC version 4.0.2 20050901 (prerelease) (SUSE Linux).
- Compiled on a Linux 2.6.12 system on 2005-09-09.
- Available extensions:
- GNU libio by Per Bothner
- crypt add-on version 2.1 by Michael Glad and others
- linuxthreads-0.10 by Xavier Leroy
- GNU Libidn by Simon Josefsson
- NoVersion patch for broken glibc 2.0 binaries
- BIND-8.2.3-T5B
- libthread_db work sponsored by Alpha Processor Inc
- NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
- Thread-local storage support included.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/libc/bugs.html>.
- developer@linux:~>
- developer@linux:~> /lib/tls/libc.so.6
- GNU C Library stable release version 2.3.5 (20050802), by Roland McGrath et al.
- Copyright (C) 2005 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions.
- There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
- PARTICULAR PURPOSE.
- Configured for i686-suse-linux.
- Compiled by GNU CC version 4.0.2 20050901 (prerelease) (SUSE Linux).
- Compiled on a Linux 2.6.12 system on 2005-09-09.
- Available extensions:
- GNU libio by Per Bothner
- crypt add-on version 2.1 by Michael Glad and others
- Native POSIX Threads Library by Ulrich Drepper et al
- GNU Libidn by Simon Josefsson
- NoVersion patch for broken glibc 2.0 binaries
- BIND-8.2.3-T5B
- NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
- Thread-local storage support included.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/libc/bugs.html>.
- developer@linux:~>
(Note: This example is on SLES 9. SLES 10 has deprecated support for Linux Threads and only supports NPTL)
参考:1、http://gaodi2002.blog.51cto.com/5940761/1942697
2、https://www.novell.com/developer/ld_assume_kernel.html
centos6.9安装xampp后报错:egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory的更多相关文章
- CentOS6.5安装readline时报错:/usr/bin/ld : cannot find -lncurses
CentOS6.5安装readline时报错:/usr/bin/ld : cannot find -lncurses 解决方法: 安装ncurses-devel,输入命令: #yum install ...
- 解决mac安装homebrew后报错-bash: brew: command not found
解决mac安装homebrew后报错-bash: brew: command not found 参照官网上很简单的一句安装命令, /usr/bin/ruby -e "$(curl ...
- linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql. 2013-03-04 1 ...
- linux--->阿里云centos6.9安装yii2报错
阿里云centos6.9安装yii2报错 错误显示:Warning: require(/vendor/autoload.php): failed to open stream: No such fil ...
- 运行 puppeteer 报错 chrome: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory
运行 puppeteer 报错 chrome: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open sh ...
- Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
问题: Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared obje ...
- Android 开发环境 —— Eclipse 启动时报错:Error when loading the SDK
简述: Eclipse 启动时报错:Error when loading the SDK 错误信息: Error when loading the SDK: Error: Error parsing ...
- 报错libtest: error while loading shared libraries: libuv.so.1: cannot open shared object file: No such file or directory
使用g++编译.运行libuv的demo错误解决 我们通过例子来讲述监视器的使用. 例子中空转监视器回调函数被不断地重复调用, 通过例子我们也可以了解到: 由于设置了监视器, 所以调用 uv_run ...
- nginx检查报错 error while loading shared libraries: libprofiler.so.0: cannot open shared object file: No such file or directory
在centos7.3上编译安装nginx-1.12.2 启动测试出错 [root@web02 local]# /usr/local/nginx/sbin/nginx -t /usr/local/ngi ...
随机推荐
- 创建堆 HeapCreate
创建额外的堆的原因1.对组件进行保护2.更有效的内存管理3.局部访问4.避免线程同步开销5.快速释放 HeapCreate函数原型:HANDLE WINAPI HeapCreate( _In_ DWO ...
- Django【进阶】序列化
关于Django中的序列化主要应用在将数据库中检索的数据返回给客户端用户,特别的Ajax请求一般返回的为Json格式. 方案一:serializers 1 2 3 4 5 fromdjango.cor ...
- Linux下安装php环境并且配置Nginx支持php-fpm模块[www]
Linux下安装php环境并且配置Nginx支持php-fpm模块 http://www.cnblogs.com/freeweb/p/5425554.html 5分钟搭建 nginx +php --- ...
- 原型和JS内置对象
原型 1.定义 每一个对象都有原型 原型仍然是一个对象 模拟实现面向对象的继承性 2.原型链 对象的原型还有原型 对象除了可以使用自有属性还可以继承原型上的属性 3.获取原型 对象.__proto__ ...
- WPF中添加一个文本输入框,按Enter回车,执行绑定的Command
在WPF+WMMV模式中使用键盘和鼠标事件的绑定代码如下: <TextBox x:Name="SearchBox" Text="{Binding SearchTex ...
- python encode和decode函数说明
字符串编码常用类型:utf-8,gb2312,cp936,gbk等. Python中,我们使用decode()和encode()来进行解码和编码 在python中,使用unicode类型作为编码的基础 ...
- 实现用http上传文件,用ftp下载文件
1.ftp配置 1.检查安装vsftpd软件 使用如下命令#rpm -qa |grep vsftpd可以检测出是否安装了vsftpd软件, 如果没有安装,使用YUM命令进行安装. 2.启动服务 使用v ...
- 最小生成树(Minimum Spanning Tree)——Prim算法与Kruskal算法+并查集
最小生成树——Minimum Spanning Tree,是图论中比较重要的模型,通常用于解决实际生活中的路径代价最小一类的问题.我们首先用通俗的语言解释它的定义: 对于有n个节点的有权无向连通图,寻 ...
- Jekins持续集成,gitlab代码仓库
http://blog.csdn.net/john_cdy/article/details/7738393
- vector,list.queue,array.....
vector 这个我们最熟悉了,也可能是我们用的最多的容器之一了. 我们可以用vector来模拟栈,vector的push_back和pop_back效率很高,时间复杂度是常数. 由于他是一个连续的内 ...