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?
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:
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
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