LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2009, 08:12 PM   #1
loss
LQ Newbie
 
Registered: Jun 2009
Posts: 16
Blog Entries: 1

Rep: Reputation: 1
cannot execute binary file


Hi,
I am trying to run an executable make_surface file in my Linux 4.0, 32-bit machine and got the error “bash: ./make_surface: cannot execute binary file”. I don't know in which code it is written.
I have checked the file access as well which is “–rwxr-xr-x” and looks fine to me.
“file make_surface” is giving me “ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, statically linked, not stripped”.

Do I need to mention any path variable in .bashrc file? If so, can anybody please send me the command for this?

I am very new to linux and absolutely have no idea what is going on.

I would really appreciate if someone can help me in this regard.

Thanks,
Loss
 
Old 06-11-2009, 08:23 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
What is the result of
Code:
file make_surface
 
Old 06-11-2009, 08:33 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Quote:
file make_surface” is giving me “ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV),
You can not run a 64 bit program on a 32 bit OS...

What distribution / version / hardware are you running? There is no such thing as linux 4.0.
 
Old 06-11-2009, 09:03 PM   #4
loss
LQ Newbie
 
Registered: Jun 2009
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 1
@jamescondron: “file make_surface” is giving me “ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, statically linked, not stripped”.

@michaelk: I'm running Red Hat Linux 4.0 if this is what you are looking for. I am trying to find out some more info; but don't know where to get it.
 
Old 06-11-2009, 09:11 PM   #5
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Red Hat 4, or RHEL 4? Because Red Hat 4 is a good 13 years old, and RHEL questions are best answered by the people you're paying all that money to for support.

As michaelk said, you can't run a 64bit executable on a 32bit machine, so either find the correct one, or give up on it
 
Old 06-11-2009, 09:24 PM   #6
loss
LQ Newbie
 
Registered: Jun 2009
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 1
It is Red Hat Linux....I had to install this old version to get something running which was not compatible with other version.
My system device is showing "Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Control. Does it mean a 64bit OS?
 
Old 06-11-2009, 09:30 PM   #7
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Yes. And what did you need a 13 year old distro to run? Thats far older than your hardware, you know, so I'd be surprised if another, more up to date distro wouldn't work.

Perhaps you ought to start from the beginning with what you're trying to do.
 
Old 06-11-2009, 09:33 PM   #8
loss
LQ Newbie
 
Registered: Jun 2009
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 1
I know. But can't help at this point.
Are you saying that running make_surface will not be possible for me in this version?
 
Old 06-11-2009, 09:36 PM   #9
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
I'm saying, could you please tell us exactly what you're trying to do
 
Old 06-11-2009, 09:39 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
I would assume it is the 32 bit version of RHEL 4.
 
Old 06-11-2009, 09:41 PM   #11
loss
LQ Newbie
 
Registered: Jun 2009
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 1
I am sorry if my problem is not very clear. But what I'm trying to do is to run an executable make_surface which I'm not being able to.
I've mentioned everything in my first post I know about the file, though I don't know in which code it is written.
Let me know if you need some more information. I will try to find it out.
 
Old 06-11-2009, 09:43 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Post the output of the following commands.
uname -a
cat /etc/redhat-release
cat /proc/cpuinfo
 
Old 06-11-2009, 09:44 PM   #13
loss
LQ Newbie
 
Registered: Jun 2009
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 1
@michaelk: But it is showing Red Hat Linux, not RHEL...
 
Old 06-11-2009, 09:44 PM   #14
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
No, I mean why exactly are you using a thirteen year old distro, to solve what problem, what exactly is this programme designed to do, is it as critical as your 13 year old ideal, where did you get this installer.

Mainly what I want to know is, why are you using a distro some six years older than your hardware (Assuming your hardware came out the first day it was released) when it already was obsolete.

So to say again; what exactly are you trying to do
 
Old 06-11-2009, 09:47 PM   #15
loss
LQ Newbie
 
Registered: Jun 2009
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 1
@michaelk: Red Hat Enterprise Linux ES release 4 (Nahant Update 7)
 
  


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
cannot execute binary file kish_or Linux - Newbie 4 05-07-2008 01:53 AM
Cannot execute binary file Sigh Linux - Server 4 09-22-2006 08:43 AM
cannot execute binary file Quest101 Linux From Scratch 8 11-19-2004 02:16 PM
Cannot execute binary file pbagda Linux - General 4 01-19-2004 02:13 AM
Cannot execute binary file Nooodle007 Linux - Software 2 06-25-2003 02:25 PM


All times are GMT -5. The time now is 10:46 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration