Models: " Cannot execute binary file: Exec format error" during bazel test on Ubuntu 16.04

Created on 14 May 2016  路  6Comments  路  Source: tensorflow/models

On Ubuntu 16.04 LTS I'm getting the following error when executing
bazel test syntaxnet/... util/utf8/...

/usr/local/bin/bazel: line 86: /usr/local/lib/bazel/bin/bazel-real: cannot execute binary file: Exec format error
/usr/local/bin/bazel: line 86: /usr/local/lib/bazel/bin/bazel-real: Success

Does this mean that Bazel has to built from the source files?

Most helpful comment

Had the exact same issue: means you tried to install wrong version of Bazel for your OS (I tried installing OSX version on Linux)
You should use bazel-0.2.2-installer-linux-x86_64.sh

All 6 comments

Had the exact same issue: means you tried to install wrong version of Bazel for your OS (I tried installing OSX version on Linux)
You should use bazel-0.2.2-installer-linux-x86_64.sh

Thanks @ilyador for the diagnosis. @ProgramItUp: Please reopen if that isn't the issue.

Hi @girving @ilyador . I am trying to use bazel on Ubuntu 14.04 LTS, 32 bit. I'm getting the given error for below 3 scripts:

  1. bazel-0.2.2-installer-linux-x86_64.sh
  2. bazel-0.5.4-installer-linux-x86_64.sh
  3. bazel-0.5.4-without-jdk-installer-linux-x86_64.sh

Do these scripts only work on Ubuntu 16.04? Is there some other solution to make things work on Ubuntu 14.04?

@ProgramItUp , request you to reopen the issue, as it is failing for me on Ubuntu 14.04.

@akshay-j - it failed for me too for v14.04. But it ran fine for v16.04.

it fail for me on ubuntu 18

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jacknlliu picture jacknlliu  路  3Comments

rakashi picture rakashi  路  3Comments

nmfisher picture nmfisher  路  3Comments

sun9700 picture sun9700  路  3Comments

kamal4493 picture kamal4493  路  3Comments