Why Am I Getting a Zsh: Exec Format Error?

I am trying to run the metal executable from my zsh terminal in order to meta-analyze GWAS data. I have the executable in the correct directory and have checked that it is not 0MB due to truncation.

Reproducible: Download the Linux file from

In terminal: PATH TO EXECUTABLE ./metal zsh: exec format error: ./metal

1

2 Answers

You probably install wrong OS of go, for example, you might install go for MacOS in Linux

I solve this problem by installing go for correct OS

The executable has been pre-compiled on a certain distribution with libraries at a certain places at certain versions.

If you have a different distribution, libraries versions, it won't work and you better compile from the source.

Basically what you have to do is to download and extract the sources, go in the folder and execute make. (You will have probably to install make first.)

I think that's not your job at all so maybe you can find a geeky person to help you, because you may stumble upon problems, libraries to install, old versions not supported anymore, new versions not supported yet...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest