LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-20-2009, 07:27 AM   #1
kmacphail
Member
 
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133
Blog Entries: 1

Rep: Reputation: 18
cannot run any binary files at all FC12 64 bit


I have recently installed FC12 64 bit. I have been using Fedora now since I first installed FC9 a few years back.

My main problem is that I am unable to execute any files at all using the ./filename command. I spent last night trying to run the ipod bootloader and all I kept on getting was the message: unable to run binary file. I used the command chmod +x ipodpatcher before attempting to run it, but with no luck. After a while of frustration and a few suggestions online I booted up my Ubuntu OS and the file ran first time. Am I missing a program on FC12? Do I need to install something else?

I feel it may be simple, however I have never experienced this problem before using Fedora. Any suggestions?
 
Old 11-20-2009, 07:32 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by kmacphail View Post
I have recently installed FC12 64 bit. I have been using Fedora now since I first installed FC9 a few years back.

My main problem is that I am unable to execute any files at all using the ./filename command. I spent last night trying to run the ipod bootloader and all I kept on getting was the message: unable to run binary file. I used the command chmod +x ipodpatcher before attempting to run it, but with no luck. After a while of frustration and a few suggestions online I booted up my Ubuntu OS and the file ran first time. Am I missing a program on FC12? Do I need to install something else?

I feel it may be simple, however I have never experienced this problem before using Fedora. Any suggestions?
is there any chance of you pasting the output from the attempt to run this or any file?
 
Old 11-20-2009, 07:40 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by kmacphail View Post
I kept on getting was the message: unable to run binary file. I used the command chmod +x ipodpatcher before attempting to run it, but with no luck. After a while of frustration and a few suggestions online I booted up my Ubuntu OS
Is Ubuntu 32 bit or 64 bit? Is ipodpatcher 32 bit or 64 bit? Maybe you are missing part or all of the multilib support in FC12.

The output from the following commands might give us a better idea of the nature of the problem:
Code:
file ipodpatcher
Code:
ldd ipodpatcher
 
Old 11-20-2009, 11:01 AM   #4
kmacphail
Member
 
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Thanks for the swift response guys.
CentOSboy:
Quote:
is there any chance of you pasting the output from the attempt to run this or any file?
Here you go:
Quote:
[kev@kev-pc ipod mod]$ sudo ./ipodpatcher
./ipodpatcher: ./ipodpatcher: cannot execute binary file
johnsfine: ipodpatcher is the 64bit Linux version and both FC12 and Ubuntu are 64bit
 
Old 11-20-2009, 11:03 AM   #5
kmacphail
Member
 
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Johnsfine, here is the info you requested (the same file was used for Ubuntu):

Quote:
[kev@kev-pc ipod mod]$ file ipodpatcher
ipodpatcher: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

[kev@kev-pc ipod mod]$ ldd ipodpatcher
not a dynamic executable
 
Old 11-20-2009, 12:09 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I'm trying to think of a second explanation for the combination of output you got from file and ldd. I haven't thought of one yet. Maybe some Fedora expert is reading this thread and can offer that second explanation.

You already contradicted the obvious explanation (that you're on a 32 bit version of Linux), but just to be sure, please try this command on the system where you got that strange result from ldd.
Code:
uname -a

Last edited by johnsfine; 11-20-2009 at 12:10 PM.
 
Old 11-20-2009, 12:51 PM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by kmacphail View Post
Johnsfine, here is the info you requested (the same file was used for Ubuntu):

what about attaching strace??

Code:
strace ./ipodpatcher
 
Old 11-20-2009, 01:10 PM   #8
kmacphail
Member
 
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Johnsfine, uname -a gives the following output:

Quote:
[kev@kev-pc ipod mod]$ uname -a
Linux kev-pc 2.6.31.5-127.fc12.i686 #1 SMP Sat Nov 7 21:41:45 EST 2009 i686 athlon i386 GNU/Linux
CentOSboy after an install of strace I get this output:
Quote:
[kev@kev-pc ipod mod]$ sudo strace ./ipodpatcher
execve("./ipodpatcher", ["./ipodpatcher"], [/* 19 vars */]) = -1 ENOEXEC (Exec format error)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb781f000
_llseek(3, 0, 0xbf8c1010, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
close(3) = 0
munmap(0xb781f000, 4096) = 0
exit_group(1) = ?
 
Old 11-20-2009, 01:15 PM   #9
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Each of those independently tells us you are running a 32 bit build of Linux. You cannot run 64 bit programs on 32 bit Linux.

Quote:
Originally Posted by kmacphail View Post
I have recently installed FC12 64 bit.
We are still talking about that system, right? The one that you think is 64 bit FC12? The uname output tells us it is 32 bit FC12 (the strace output alone would just tell me it is some 32 bit x86 Linux).

Assuming you don't yet understand how you ended up with a 32 bit build of Linux, you probably should tell us some things about where you got "64 bit" FC12 and how you installed it.

Last edited by johnsfine; 11-20-2009 at 01:23 PM.
 
Old 11-20-2009, 02:17 PM   #10
kmacphail
Member
 
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133

Original Poster
Blog Entries: 1

Rep: Reputation: 18
I downloaded the system (what I believed to be 64 bit) from the fedora website. I am now going to download it again and do a reinstall. Thanks for your help folks, this is odd, anyway mistakes happen. Thanks

Kev
 
Old 11-20-2009, 02:21 PM   #11
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by kmacphail View Post
I downloaded the system (what I believed to be 64 bit) from the fedora website. I am now going to download it again and do a reinstall.
Before going to the effort of reinstalling, you ought to tell us the URL you are downloading from. Maybe you are misunderstanding something there and downloading 32 bit again.

Edit: I looked at the Fedora web site and it looks like it would be hard to misunderstand. The download page I found was
http://mirrors.kernel.org/fedora/rel...ra/x86_64/iso/

That claims unambiguously to be FC12 64 bit and the 32 bit alternative was pretty unambiguously 32 bit.

Last edited by johnsfine; 11-20-2009 at 02:25 PM.
 
Old 11-25-2009, 04:46 AM   #12
kmacphail
Member
 
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133

Original Poster
Blog Entries: 1

Rep: Reputation: 18
The file that I downloaded and burnt onto CD had the term 86_64 and Fedora 12 in the title, I may be jumping to conclusions, but I thought that this would mean the 64 bit version of Fedora 12. Anyway I have now downloaded it again and installed the system, Fedora is now up and running in 64 bit mode. After an hour trying to figure out why my video driver wasn't loading, I had to eventually blacklist nouveau (what a hassle that caused), I now have my system running as I would like it. Thanks to everybody for their help.

Last edited by kmacphail; 12-08-2009 at 04:21 PM. Reason: spelling mistake
 
  


Reply



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
KDE Distros (Kubuntu, Knoppix) won't run Binary files bookerg Linux - Newbie 8 08-05-2007 07:38 AM
wont run binary files flyereddie DamnSmallLinux 2 12-07-2006 12:25 AM
can't run binary files abs Slackware 12 01-21-2005 01:56 AM
Compiling 32-bit binary in a 64-bit environment Kaj Linux - Software 1 12-13-2004 09:43 AM
C, read 8 bit octal numbers, convert to 24 bit binary bamalabs Programming 3 01-20-2004 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:44 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