欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jdk安装完后报错/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

程序员文章站 2022-03-08 19:28:03
...

centos7.6 jdk安装,下载的如下jdk包

wget https://mirrors.huaweicloud.com/java/jdk/8u201-b09/jdk-8u201-linux-i586.tar.gz

安装好后。配置好环境变量之后执行java -version报错

-bash: /root/jdk1.8.0_201/bin/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

解决

执行 sudo yum install glibc.i686 命令即可
然后再看java -version OK啦
jdk安装完后报错/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory