LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-15-2012, 05:36 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 494

Rep: Reputation: 35
Cannot run 64-bit pre-compiled binaries on CLFS-Pure64 system


Hi,
I'm trying to install OpenJDK on my CLFS x86_64-64 build, and when I try to run java from the 64bit binary package (OpenJDK-1.7.0.5-x86_64-bin.tar.xz in the latest SVN) that BLFS provides, I get:
Code:
sudo: unable to execute /opt/OpenJDK-1.7.0.5-bin/bin/java: No such file or directory
At first I thought it was probably a PATH error, but even trying to run the java executable from the host directory gave me the same error. Then I thought perhaps it was a permissions problem, but running it as root gave the exact same error. I then downloaded the JRE bin package from Oracle, and got the same error. So to see if other precompiled binaries failed in the same way, I tried to run the 64-bit dropbox executable, and got the same dreaded error. Googling this got me nowhere. So I really want to know what's going on here. It will be great if somebody could provide some insight on this. Thank you.
 
Old 09-18-2012, 04:58 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,549

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Anything in the messages log?
Is selinux enabled?
What does this give:
Code:
ls -l /opt/OpenJDK-1.7.0.5-bin/bin/java
 
Old 09-19-2012, 02:07 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 494

Original Poster
Rep: Reputation: 35
I got it sorted. It's quite embarrassing actually. I just needed to symlink /lib64 and /usr/lib64 to /lib and /usr/lib resp. (since in pure64 CLFS, these aren't present). Thank you, smallpond, for your reply, though. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] 32 bit binaries do not run on 64 bit machine frznchckn Linux - Software 51 02-28-2011 12:20 PM
[SOLVED] Errors while building g77 compiler on a CLFS pure64 system corbis_demon Linux From Scratch 4 11-29-2010 02:06 AM
how to install git (CLFS Pure64) charlie_lab Linux From Scratch 4 03-29-2010 11:07 AM
gcc problem (chapter 6.4.1 of the Pure64 CLFS book) charlie_lab Linux From Scratch 0 03-14-2010 08:51 AM
Pre-compiled libraries and binaries. pappy_mcfae Slackware 8 03-27-2007 02:07 AM


All times are GMT -5. The time now is 09:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration