当前位置: 技术问答>linux和unix
linux下安装jdk
来源: 互联网 发布时间:2017-05-25
本文导语: [root@idmtest local]# rpm -ivh jdk-7u5-linux-i586.rpm Preparing... ########################################### [100%] 1:jdk ########################################### [100%] Unpacking JAR files... ...
[root@idmtest local]# rpm -ivh jdk-7u5-linux-i586.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/rt.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
jsse.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/jsse.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
charsets.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/charsets.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
tools.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/lib/tools.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
localedata.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/ext/localedata.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
plugin.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/plugin.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
javaws.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/javaws.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
deploy.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/deploy.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
——————————————————————————————————————
以为为问题,以下是相关信息
1、linux的版本
[root@idmtest local]# uname -a
Linux idmtest.360buy.com 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
2、
lib/ld-linux.so.2理论上是一个连接文件,我在上一个虚机中没有这些文件,但也可以安装。在原来的虚机中,安装成功过。我确认不是安装包的问题,我下了好多安装包都试过了,至于这个lib/ld-linux.so.2文件要指向的文件也是没有的。
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/rt.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
jsse.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/jsse.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
charsets.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/charsets.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
tools.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/lib/tools.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
localedata.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/ext/localedata.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
plugin.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/plugin.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
javaws.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/javaws.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
deploy.jar...
/var/tmp/rpm-tmp.QYrgJY: /usr/java/jdk1.7.0_05/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.7.0_05/jre/lib/deploy.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
——————————————————————————————————————
以为为问题,以下是相关信息
1、linux的版本
[root@idmtest local]# uname -a
Linux idmtest.360buy.com 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
2、
lib/ld-linux.so.2理论上是一个连接文件,我在上一个虚机中没有这些文件,但也可以安装。在原来的虚机中,安装成功过。我确认不是安装包的问题,我下了好多安装包都试过了,至于这个lib/ld-linux.so.2文件要指向的文件也是没有的。
|
你是64bit的系统吧,请下载64bit版本的JDK。这个提示说明缺少32bit版本的glibc.i686,虽然用yum可以安装。但是出于性能和兼容性考虑(现在的Fedora 64bit的yum几乎不会下载32bit包),建议你重新去Oracle下载64bit的JDK。
接着参考:http://www.mjmwired.net/resources/mjm-fedora-f17.html#java
使用alertnative修改默认的java链接,从OpenJDK切到Oracle JDK。
接着参考:http://www.mjmwired.net/resources/mjm-fedora-f17.html#java
使用alertnative修改默认的java链接,从OpenJDK切到Oracle JDK。