zbb20170621 linux CentOS 7上安装jdk时提示:/lib/ld-linux.so.2: bad ELF interpreter

环境

[root@iZ25jyynd10Z ~]# uname -m&&uname -r
x86_64
2.6.32-431.23.3.el6.x86_64
[root@iZ25jyynd10Z ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)

问题
运行安装JDK命令得到以下错误提示:
[root@iZ25jyynd10Z ~]# rpm -ivh jdk-8u60-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:jdk1.8.0_60            ########################################### [100%]
Unpacking JAR files...
        tools.jar...
/var/tmp/rpm-tmp.QLqjCT: /usr/java/jdk1.8.0_60/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

        /usr/java/jdk1.8.0_60/lib/tools.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        plugin.jar...
/var/tmp/rpm-tmp.QLqjCT: /usr/java/jdk1.8.0_60/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

原因
64位系统中安装了32位程序。

解决方法
运行以下命令:
[root@iZ25jyynd10Z ~]# yum install libgcc.i686

再重新安装JDK。
posted @ 2017-06-21 14:00  DaryllD  阅读(1558)  评论(0编辑  收藏  举报