Cannot execute binary file: Exec format error

After unpacking with tar -zxvf https://root.cern.ch/download/root_v6.12.06.Linux-ubuntu16-x86_64-gcc5.4.tar.gz

and running

source /folder/where/unpacked/root/bin/thisroot.sh

I get the error

bash: /folder/where/unpacked/root/bin/root: cannot execute binary file: Exec format error

What is the cause and how to fix?

Ubuntu 16.04.4
gcc version 5.4.0 20160609

Can it be that your system is 32-bit?
Try uname -m and see if you get “x86_64”.

1 Like

yes, it is a 32 bit system

You need to build your ROOT yourself.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.