Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check Bazel version?

I am trying to find out which version of Bazel I currently have on my computer to install TensorFlow from source (it requires version 0.1.4)

evan@evan-box:~/Apps/tensorflow$ bazel --version
Unknown Bazel startup option: '--version'.
  For more info, run 'blaze help startup_options'.
evan@evan-box:~/Apps/tensorflow$ bazel version
Build label: head (@125b349)
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/bazel-main_deploy.jar
Build time: Fri Nov 13 01:23:30 2015 (1447377810)
Build timestamp: 1447377810
Build timestamp as int: 1447377810

So where is the version actually?

like image 854
Evan Pu Avatar asked Feb 09 '16 14:02

Evan Pu


People also ask

How do I find Bazel version?

For now, to see documentation for older Bazel versions, go to docs. bazel. build. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License.

What is Bazel in Linux?

Bazel is an open-source build and test tool similar to Make, Maven, and Gradle. It uses a human-readable, high-level build language. Bazel supports projects in multiple languages and builds outputs for multiple platforms. Bazel supports large codebases across multiple repositories, and large numbers of users.

Where does Bazel install to?

The installer contains the Bazel binary and extracts it into your $HOME/bin folder. Some additional libraries must be installed manually for Bazel to work.


2 Answers

See Bazel users manual

From the command line:

$ bazel version 
Build label: 0.1.1
like image 180
Guy Coder Avatar answered Nov 10 '22 20:11

Guy Coder


Since bazel version 0.27.0 there is bazel --version available, without the side-effect of starting the server daemon.

like image 30
Samuel Avatar answered Nov 10 '22 20:11

Samuel