简体   繁体   English

在Ubuntu中安装Sun JDK 6失败,出现“ELF:not found”

[英]Sun JDK 6 installation in Ubuntu fails with “ELF: not found”

I was following this doc and installing Sun JDK 6 in my Ubuntu server v11. 我正在关注此文档并在我的Ubuntu服务器v11中安装Sun JDK 6。

root@li339-83:~# wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
root@li339-83:~# chmod u+x jdk-6u45-linux-x64.bin
root@li339-83:~# ./jdk-6u45-linux-x64.bin
Unpacking...
Checksumming...
Extracting...
./install.sfx.331: 1:ELF: not found
./install.sfx.331: 2: Syntax error: ")" unexpected
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.

I tried to find the solution for "ELF: not found" but couldn't find a solution. 我试图找到“ELF:not found”的解决方案,但找不到解决方案。 Any idea on how to solve this ELF issue? 关于如何解决这个ELF问题的任何想法?

The best way to install Oracle JDK (and other softwares) on Ubuntu is probably to use standard Debian tools such as apt-get or synaptic. 在Ubuntu上安装Oracle JDK(和其他软件)的最佳方法可能是使用标准的Debian工具,如apt-get或synaptic。 To do so, you will have to add the WebUpd8 team PPA (more details here ). 为此,您必须添加WebUpd8团队PPA( 此处有更多详细信息)。

In my opinion, and I am not sure if I am right or not, if you are on a 64-bit system and try to install something that is strictly 32-bit , such as a 32-bit JDK, then you need to download and install the 32-bit elf libraries into your Ubuntu linux system. 在我看来,我不确定我是否正确,如果您使用的是64位系统并尝试安装严格32位的内容,例如32位JDK,那么您需要下载并将32位elf库安装到您的Ubuntu Linux系统中。 This is probably because, those libraries are expected to be unnecessary if you are on a 64-bit system. 这可能是因为,如果您使用的是64位系统,那么这些库是不必要的。 The 32-bit elf libs (from the 32-bit version of Ubuntu) are still available though if you download them manually. 如果您手动下载它们,32位精灵库(来自32位版本的Ubuntu)仍然可用。 I ran into an issue similar to this trying to install a 32-bit WebSphere demo on a 64-bit CentOS system about a year ago. 我遇到了类似的问题,试图在一年前的64位CentOS系统上安装32位WebSphere演示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM