centos 下安装mysql出现 /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
centos 下安装mysql在执行mysqld --initialize命令时报错 /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
这是因为在64位的系统中安装了32位的程序,解决方案:
安装glibc.i686 :
yum install glibc.i686
执行完glibc.i686安装命令后,我们继续执行mysqld --initialize,发现系统依然报错:
error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or directory
这时是因为系统嗨缺少zlib.i686 组件,我们继续啊安装zlib.i686 :
yum install zlib.i686 --setopt=protected_multilib=false <!--setpot参数处理多个库共存冲突-->
此时继续执行mysqld --initialize还是包缺少i686组件错误,博主后来不断安装各种缺少的组件,发来发现这样子不是办法,估计后面缺少上百个这样子的组件,这样子一个个安装不知道什么时候才能结束,后来我继续到网上查找方法,终于找到一个安装所有32位程序需要组件的方法:
yum install xulrunner.i686 <!--ia32-libs.i686 //是ubuntu系列下的,而且13.10之后的ubuntu貌似也没这个了-->
转载于:https://my.oschina.net/u/1263127/blog/836020
上一篇: mysql /bin/rm: cannot remove `libtoolT’: No such file or directory
下一篇: busybox login: can't execute '/bin/bash': No such file or directory 解决方法
推荐阅读
-
CentOS 安装软件出现错误:/lib/ld-linux.so.2: bad ELF interpreter 解决
-
linux 配置JAVA 环境问题(一)/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
jdk安装完后报错/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
Linux安装jdk错误:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
linux 配置jdk环境(出错/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory)
-
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory问题解决方法
-
centos 下安装mysql出现 /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
Fixing /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
解决/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory报错
-
解决/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory报错