linux centos 安装jdk1.7报错 bad ELF interpreter: No such file or directory

redhat7安装jdk1.7报错/home/renqiwei/jdk1.7/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

本地下载解压安装到/home/renqiwei/jdk1.7目录下

root配置环境变量,报错:

 

原因:是因为64位系统中安装了32位程序


解决方法:
yum install glibc.i686

重新安装,javac成功

linux centos 安装jdk1.7报错 bad ELF interpreter: No such file or directory_第1张图片

 

如果还有如下类系错误 再继续安装包

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

yum install libstdc++.so.6




转载https://www.cnblogs.com/RENQIWEI1995/p/7805316.html

你可能感兴趣的:(JAVA)