修复/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 7.5 Mini版本系统,然后配置JDK环境,配置好后显示:

[root@jenkins opt]# tail -3 /etc/profile
export JAVA_HOME=/opt/jdk1.8.0_191
export JRE_HOME=$JAVA_HOME/jre
export PATH=$PATH:$JAVA_HOME/bin
[root@jenkins opt]# source /etc/profile
[root@jenkins opt]# java -V
-bash: /opt/jdk1.8.0_191/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

报错了。。。根据提示查了下,发现缺少了 glibc.i686....

通过查询,只要 在64系统里执行32位程序如果出现/lib/ld-linux.so.2:
bad ELF interpreter: No such file or directory,安装下glic即可

yum install glibc.i686

转载于:https://www.cnblogs.com/winstom/p/10065075.html

你可能感兴趣的:(修复/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory问题)