Originally Posted by kmacphail
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
on it. If it is a shell-script, which seems likely, examine the file using, for example,
On the very first line you should see something like
for a bash script,
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: