Cannot execute binary file: Exec format error

Hello, I just tried to download the CLI in my ubuntu. When running “uname -m” in my machine the output is x86_64 so I tried installing the “exercism-3.4.0-linux-x86_64.tar.gz”. But when I tried to run it my output is: cannot execute binary file: Exec format error. Anyone can help? thx.

1 Like

What is the exact commands you ran and the exact output? Please copy/paste (no screenshots) and use a codeblock.

A gz file is a zipped file, not a runnable file.

The error

bash: ./exercism: cannot execute binary file: Exec format error

normally means that is not an executable that can run on your architecture.

Try to follow the steps through the walk through again: Exercism

For Ubuntu that was the correct file, but perhaps you did not extract the file (just double click the tar file and extract the file).

If you try to give execute permissions to the tar file and execute the tar file, you would get the same error.

However you need to extract the file and execute the exercism binary file that’s in there.

If in doubt, run file exercism to learn what kind of (binary) file it is.

I suspect they aren’t waiting around 10 months later waiting for help here :smiley:

1 Like

True. But every respond is appreciated for anyone else with the same problem!

1 Like