zoukankan      html  css  js  c++  java
  • 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。
  • 相关阅读:
    2020-01月-02月
    Work needing Technologies
    gcc和 gdb工具(转)
    pyenv and grunt-contrib-testem
    Statistics Books
    HTML5学习--SVG全攻略(基础篇)
    一个完整的学院网站实现过程
    JavaScript 常用单词整理
    一张图教会CSS3倒影
    Python大数据处理案例
  • 原文地址:https://www.cnblogs.com/super-admin/p/7059206.html
Copyright © 2011-2022 走看看