zsh: exec format error...
his is the error I was getting when trying to execute a large application. I am using redhat Linux.
What can I do to solve this?
zsh: exec format error...
his is the error I was getting when trying to execute a large application. I am using redhat Linux.
What can I do to solve this?
The file that you're running has been given the execute permission, but it isn't in a format that the kernel understands, so it can't be executed on your machine.
Run file /path/to/the/executable
to see what kind of a file it is.
This could be an archive that you're supposed to extract, or an executable for a different architecture (e.g. a 64-bit executable on a 32-bit system), or anything else really.
I solved this issue in shell script, by switch the file's line separator to \n, then it works for me.
file
for the file you're trying to execute? (file <filename>
) – Flup Nov 11 '14 at 10:34