When './configure' TensorFlow, you might encounter the following error:
Johnnyui-MacBook-Pro:tensorflow izeye$ ./configure
...
Current Bazel version is 0.3.1, expected at least 0.4.2
...
Johnnyui-MacBook-Pro:tensorflow izeye$
Check your bazel version as follows:
Johnnyui-MacBook-Pro:tensorflow izeye$ brew info bazel
bazel: stable 0.3.1 (bottled), HEAD
Google's own build tool
https://www.bazel.io/
/usr/local/Cellar/bazel/0.1.2 (659 files, 148.9M)
Poured from bottle on 2016-03-10 at 21:19:46
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/bazel.rb
==> Requirements
Required: java >= 1.8 ✔, macOS >= 10.10 ✔
Johnnyui-MacBook-Pro:tensorflow izeye$
Uninstall your bazel as follows:
Johnnyui-MacBook-Pro:tensorflow izeye$ brew uninstall bazel
Uninstalling /usr/local/Cellar/bazel/0.3.1... (9 files, 94.5M)
bazel 0.1.2 is still installed.
Remove all versions with `brew uninstall --force bazel`.
Johnnyui-MacBook-Pro:tensorflow izeye$ brew uninstall --force bazel
Uninstalling bazel... (659 files, 148.9M)
Johnnyui-MacBook-Pro:tensorflow izeye$
Install the latest version of bazel as follows:
Johnnyui-MacBook-Pro:tensorflow izeye$ brew install bazel
...
Johnnyui-MacBook-Pro:tensorflow izeye$ brew link --overwrite bazel
Linking /usr/local/Cellar/bazel/0.4.4... 4 symlinks created
Johnnyui-MacBook-Pro:tensorflow izeye$
Check your bazel version again as follows:
Johnnyui-MacBook-Pro:tensorflow izeye$ brew info bazel
bazel: stable 0.4.4 (bottled)
Google's own build tool
https://bazel.build/
/usr/local/Cellar/bazel/0.4.4 (10 files, 155.1M) *
Poured from bottle on 2017-02-03 at 00:34:39
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/bazel.rb
==> Requirements
Required: java >= 1.8 ✔, macOS >= 10.10 ✔
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
Johnnyui-MacBook-Pro:tensorflow izeye$
Check your bazel version via 'bazel' as follows:
Johnnyui-MacBook-Pro:tensorflow izeye$ bazel version
Build label: 0.4.4-homebrew
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Feb 2 01:06:38 2017 (1485997598)
Build timestamp: 1485997598
Build timestamp as int: 1485997598
Johnnyui-MacBook-Pro:tensorflow izeye$
Edit:
'brew upgrade' works in another machine although I don't know why it didn't work before in the above machine:
brew upgrade bazel
No comments:
Post a Comment