linux下安装jdk
艺籽落 2012-09-11 02:44:59 [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文件要指向的文件也是没有的。