Search code examples
linuxmacostensorflowbazelsyntaxnet

bazel cannot test syntax net in my mac


I am trying to run SyntaxNet on my mac and I followed the steps that listed on this site but when I reach the last installation step when bazel test SyntaxNet, I got a problem

This is it:

Users-MacBook-Pro:syntaxnet user$ bazel test --linkopt=-headerpad_max_install_names     syntaxnet/... util/utf8/...
..........
Unhandled exception thrown during build; message: topLevelKey: TARGET_PATTERN:syntaxnet/...
alreadyReported: false
path to cycle:
TARGET_PATTERN:syntaxnet/...
RECURSIVE_PKG:rootedPath=[/Users/user/Downloads/models/syntaxnet]/[syntaxnet], excludedPaths=<omitted>)
PACKAGE:syntaxnet
cycle:
PACKAGE:external
WORKSPACE_FILE:[/Users/user/Downloads/models/syntaxnet]/[WORKSPACE]
...

... etc


Solution

  • I realized that I have the wrong version of Bazel installer. Mac user should use these two

    bazel-0.2.2b-installer-darwin-x86_64.sh

    bazel-0.2.2b-installer-darwin-x86_64.sh.sha256

    When I use these, it works fine with me.