LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-29-2006, 10:00 PM   #1
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
[SOLVED] JDK Install fails with install.sfx.#### No such file during installation.


I'm trying to install jdk-1_5_0_09-linux-amd64.bin on a pure 64-bit Linux system built using CLFS version 1.0.0.
Code:
cp jdk-1_5_0_09-linux-amd64.bin jdk-mod.bin && ./jdk-mod.bin
I get these results after accepting the license agreement.
Quote:
Do you agree to the above license terms? [yes or no]
y
Unpacking...
Checksumming...
0
0
Extracting...
./jdk-1_5_0_09-linux-amd64.bin: line 396: ./install.sfx.6388: No such file or directory

Done.
I haven't found anything on the web, the Java bug database, or in Sun's Java forums that has been helpful. I posted this problem in the Sun forum and no help was forthcoming. Everything I've found thus far talks about either
  • File systems mounted ro, checked that mine are mounted rw.
  • Not having proper privileges, same results whether I try as a privileged or unprivileged user.
I extracted everything from the *.bin using unzip. But when I try to execute one of the java files (e.g., java, javac, etc.) I get a "No such file or directory" error. The files are there and the executable flags are set. I mounted my Gentoo partition and attempted to execute its java files that I know are working when I'm booted into Gentoo. Same "No such file or directory" error.

I first encountered the error after having installed Xorg and several other packages. I did a complete rebuild of the base CLFS on a new partition and attempted to install JDK before anything else. Same results.

I'm assuming that I've done something wrong in the base build twice now, but I can't see what. During the second build, I ran every test suite and resolved any errors before installing the package. Any help would be appreciated.

Thanks in advance.

Andrew

Last edited by weibullguy; 12-06-2006 at 11:05 PM.
 
Old 11-30-2006, 02:44 AM   #2
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Try running ldd command on one of the java binaries to see what is missing.
I guess your dynamic linker (/lib64/ld-linux-x86-64.so.2) has somehow ended up in wrong directory. That path is hard-coded in every dynamically linked executable, so getting it wrong breaks all binaries that use the standard one.
 
Old 12-01-2006, 09:57 AM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815

Original Poster
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Thanks Harmaa Kettu, I didn't even consider a problem with dyanamic linker since nothing else on the system was problematic. By the time you have GNOME installed there are many things that use the dynamic linker. However, everything else on the system was built from source whereas the JDK binaries are, obviously, built by a Sun engineer for our convenience.

The path for the dynamic linker is hard coded, but this does not mean that the path is /lib64. That's why everything built from source worked with ld-linux-x86-64.so.2 in /lib. Which is where it really should be (IAW the FHS) on a pure 64-bit system because there is no need to differentiate between 64-bit and 32-bit files.

Most likely, the engineers at Sun build the 64-bit Java on a multilib system or assume everyone using it will be using a multilib system. This causes the path to be hard-coded to /lib64/ld-linux-x86-64.so.2. Hence, failure if trying to install on a pure 64-bit system. Trying to change this path manually or with a sed before unpacking the *.bin corrupts the *.bin and the install fails.

The solution I went with was to create a /lib64 directory and a symlink in /lib64 named ld-linux-x86-64.so.2 to /lib/ld-2.4.so before attempting to unpack and install the Java binary. Unfortunately, it appears you must keep this link around or the Java binaries won't run because they were compiled on a, most likely, multilib system. Hence, I assume, my "No such file or directory" problem.

Building JDK from source on a pure 64-bit system should hard code the path to /lib. Of course, you need the precompiled Java to unpack the *.jar files containing the JDK source code. AFAIK, Java isn't needed after this. It should be possible to unpack the *.jar files, delete the link in /lib64, and then build JDK from source with ld-linux-x86-64.so.2 in /lib. Maybe I'll give it a try this weekend and report back on the results.

Last edited by weibullguy; 12-01-2006 at 10:01 AM.
 
Old 01-04-2007, 06:40 AM   #4
mslama
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Another solution

Another solution how to be able to run 32bit executables on 64bit Ubuntu is to install package i32-lib. This worked for me. I am now able to run both JDK installer and 32bit JDK executables like java, javac, ....

I use testing version of Feisty, Ubuntu 7.04 on AMD64
Linux 2.6.19-7-generic #2 SMP Mon Dec 4 12:39:22 UTC 2006 x86_64 GNU/Linux

Last edited by mslama; 01-04-2007 at 06:42 AM.
 
Old 01-04-2007, 09:23 AM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815

Original Poster
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
No, that's not a solution. I don't want to run 32 bit binaries on my 64 bit system. If that's what I wanted to do, I would have built a multilib system. I wanted to run the 64 bit java binaries on a pure 64 bit system.
 
Old 01-28-2010, 10:29 AM   #6
ramikus
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Similar problem

I had a similar issue, several times. I was running jdk-1_5_0_06-linux-i586.bin using . /path/jdk-1_5_0_06-linux-i586.bin from the desired install dir (/usr/java/) when I moved the jdk-1_5_0_06-linux-i586.bin to the install dir, it installed without error.
 
Old 10-19-2010, 07:50 PM   #7
89robness
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
solution

putting the bin in /usr/java and installing the 32 bit packages worked for me.

sudo apt-get install g++-multilib
sudo apt-get install gcc-multilib
 
0 members found this post helpful.
Old 10-20-2010, 01:01 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@89robness:
Quote:
putting the bin in /usr/java and installing the 32 bit packages worked for me.

sudo apt-get install g++-multilib
sudo apt-get install gcc-multilib
How is this relevant?

The OP has (had?? this being a very old thread...) problems with CLFS and jdk. CLFS does not use apt-get and although sudo can be installed it is not used to install anything (out of the box that is).
 
Old 10-26-2010, 04:01 AM   #9
Gadbury
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Thought I'd share my solution as I've been banging my head against the wall with the same error, which is a little misleading considering my solution. I'm completely new to Linux, so please go easy

I tried the 32-bit and 64-bit flavours of the Java JDK for Linux (I'm running an Intel E2200, which is a dual core 64-bit CPU with Ubuntu). I followed Sun's installation instructions for installing the 64-bit self-extracting version.

I tried installing 32-bit and 64-bit libs with "get-apt install ia32-libs" and "get-apt install amd64-libs", respectively but this didn't help.

My solution was to use the command "sudo su" in the terminal before executing the self-extracting zip with "./jdk-6u22-linux-x64.bin". I didn't try this before as I recall Sun saying in the installation instructions "This bundle can be installed by anyone (not only root users), in any location that the user can write to."

Hopefully this might help other newbies
 
Old 10-26-2010, 04:16 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

@Gadbury: Although your general information might be useful to others, your answer/solution (like the previous post #7) doesn't have anything to do with (C)LFS. Apt-get and sudo are not part of (C)LFS!

Did you read all the replies and especially post #8???
 
Old 10-27-2010, 04:38 AM   #11
Gadbury
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
My apologies for the misinformation. I did not realise what CLFS was and that the commands in my example are not available to the OP. I had read the posts (I ended up here Googling for a solution) and to be honest a lot of the replies are difficult for me to understand as I'm completely new to Linux.
 
Old 01-02-2011, 08:15 AM   #12
jbfaden
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
worked for me

Thanks 89robness, installing g++-multilib fixed the problem for me! (32 bit Java 1.5 on 64bit Ubuntu 9.10)
 
Old 01-08-2012, 06:03 AM   #13
iocercote
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
The g++ solution is still actual

Thanks for posting this solution to install g++

I have Ubuntu 11.10 32 bit and i tried to install the actual Sun Java Runtime Environment 32bit, which atctual version is 6u30

I got the following error when trying to extract the binary:

Quote:
sudo ./jre-6u30-linux-i586.bin
Unpacking...
Checksumming...
Extracting...
./jre-6u30-linux-i586.bin: 86: ./install.sfx.8648: not found
Failed to extract the files. Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.
then i tried the proposed solution:

Quote:
chris@chris-VirtualBox:~/Downloads$ sudo apt-get install g++-multilib
and after it has finished i tried again to start the binary extraction and this time it worked!:

Quote:
chris@chris-VirtualBox:~/Downloads$ sudo ./jre-6u30-linux-i586.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
creating: jre1.6.0_30/
creating: jre1.6.0_30/bin/
inflating: jre1.6.0_30/bin/java
inflating: jre1.6.0_30/bin/jcontrol
linking: jre1.6.0_30/bin/ControlPanel -> ./jcontrol
inflating: jre1.6.0_30/bin/java_vm
...
so also from me, Thanks 89robness! Java is installed now!

BTW i m following this tutorial to install and configure Java on my Ubuntu:

w w w .youtube.com/watch?v=9cCjVIG26Do

Last edited by iocercote; 01-08-2012 at 06:04 AM. Reason: additional informations
 
Old 04-14-2012, 10:54 PM   #14
sumedha.rubasinghe
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
I encountered the same problem. In my case the error message was "./jdk-6u31-linux-i586.bin: 113: ./install.sfx.5987: not found" on "Ubuntu 10.04.2 LTS".

I had JDK 1.6.0_31 installed & working. It got crashed for no reason in the middle of a Maven build. When I tried re-installing JDK, I faced above error.

Installing "g++-multilib" as suggested above solved the problem. In a summary I did,
1. sudo apt-get install g++-multilib
2. ./jdk-6u31-linux-i586.bin
 
  


Reply

Tags
lfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help to install jdk Carunkumar Ubuntu 11 12-25-2006 01:22 AM
Freebsd 6.1 / Install webmin fails (can not fetch file) fatum112 *BSD 1 10-04-2006 06:05 AM
Package Installation fails during OpenSuse Eval 10.0 DVD install jimisola SUSE / openSUSE 2 12-02-2005 08:00 PM
FC3 installation fails at post install configuration stage grstaker Fedora - Installation 8 06-20-2005 10:43 AM
JDK binary file install marknyhan Linux - General 2 08-13-2001 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration