Fedora Linux Support Community & Resources Center
  #1  
Old 20th November 2009, 01:25 PM
kmacphail Offline
Registered User
 
Join Date: Feb 2009
Location: Isle of Lewis
Posts: 4
windows_xp_2003ie
Cannot run (execute) any binary files FC12

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?
Reply With Quote
  #2  
Old 20th November 2009, 05:44 PM
rurban Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
linuxfedorafirefox
Quote:
Originally Posted by kmacphail View Post
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?
putting "./" in front of an executable file simply instructs your shell to execute a file in a particular directory, in this case, in your current directory. Without path information, such as "./", an executable file with the given name must be present in the list of directories in the $PATH variable, assuming you use bash.

The very first question is: what kind of file is filename??

To find out, run the command
Code:
$ file <filename>
on it. If it is a shell-script, which seems likely, examine the file using, for example,
Code:
$ less <filename>
On the very first line you should see something like
Code:
#!/bin/bash
for a bash script,
Code:
#!/usr/bin/perl
for a perl script, etc. Make sure an executable interpreter exists with that path. If not, either edit the script and fix the path, or simply run the script as a parameter to the appropriate interpreter:
Code:
$ bash <filename>
Rob Urban
Reply With Quote
  #3  
Old 25th November 2009, 10:39 AM
kmacphail Offline
Registered User
 
Join Date: Feb 2009
Location: Isle of Lewis
Posts: 4
windows_xp_2003ie
Thanks for the help Rob, I've been discussing this on a few forums. There was a problem with the image I downloaded, although it was marked 86_64 when I actually ran some tests on it it ended up being the 32 bit version (d'oh) so a re-installation was necessary. Anyway no worries, I have now been able to run the programs I needed and I have a working 64 bit system.
Reply With Quote
Reply

Tags
binary, execute, fc12, files, run

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
911 help, please -Execute the binary installation for JDK squirtmph Using Fedora 2 14th August 2009 05:36 AM
bash: cannot execute binary file manditri Using Fedora 1 17th July 2008 07:32 PM
can't execute binary file benjie1 Using Fedora 2 12th April 2008 03:58 PM
how to execute binary file on fc6 Idongnz EOL (End Of Life) Versions 3 22nd December 2006 02:31 AM
execute binary without dot slash StoneBrooks Using Fedora 2 25th June 2005 07:55 PM


Current GMT-time: 19:22 (Thursday, 24-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat