Linux安装jdk错误:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
程序员文章站
2022-03-08 19:27:45
...
先入为主-所解决问题
linux最小系统mini版安装jdk时,输入java或java -version 测试安装是否成功时报错。原因多方查询后是64位系统安装32位jdk所致。我的环境是64位CentOS7 mini版
问题重现
linux最小系统mini版安装jdk时,输入java或java -version 测试安装是否成功时报错
原因
64位系统安装32位jdk
解决
yum install glibc.i686
安装好后可以尝试再次测试:java
若还不行可reboot重启后再试。
前提
/etc/profile中配置了正确的jdk环境变量
推荐阅读
-
- bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: 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
-
Linux安装jdk后,执行命令报错: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