title: How to fix "-bash: bazel: command not found" when running "bazel build //src:bazel" from windows
body: <p>Hi I downloaded the last release of bazel 0.24.1 for windows and I did the same instructions But, when I run
  <code>./compile.sh</code>
  It shows the error as mentioned  and I tried <code>bazel build //src:bazel</code> but it didn't work to it shows me</p>
  
  <blockquote>
    <p>-bash: bazel: command not found
    after searching I tried : <code>bazel --output_user_root=c:\tmp build //src:bazel.exe</code>
    but the same error
    -bash: bazel: command not found</p>
  </blockquote>
  
  <p>Ps: I run it from msys64 any suggestions please thanks a lot for reacting</p>
  
  <pre><code> ./compile.sh
  </code></pre>
  
  <blockquote>
    <p>  Building Bazel from scratch ERROR: Must specify PROTOC if not
    bootstrapping from the distribution artifact</p>
    
    <p>-------------------------------------------------------------------------------- NOTE: This failure is likely occuring if you are trying to bootstrap
    bazel from a developer checkout. Those checkouts do not include the
    generated output of the protoc compiler (as we prefer not to version
    generated files)</p>
    
    <p>.</p>
    
    <ul>
    <li><p>To build a developer version of bazel, do</p>
    
    <p>bazel build //src:bazel</p></li>
    <li><p>To bootstrap your first bazel binary, please download a dist archive from our   release page at
    <a href="https://github.com/bazelbuild/bazel/releases" rel="nofollow noreferrer">https://github.com/bazelbuild/bazel/releases</a> and run   compile.sh on
    the unpacked archive.</p></li>
    </ul>
    
    <p>The full install instructions to install a release version of bazel
    can be found at <a href="https://docs.bazel.build/install-compile-source.html" rel="nofollow noreferrer">https://docs.bazel.build/install-compile-source.html</a>
    For a rationale, why the bootstrap process is organized in this way,
    see <a href="https://bazel.build/designs/2016/10/11/distribution-artifact.html" rel="nofollow noreferrer">https://bazel.build/designs/2016/10/11/distribution-artifact.html</a></p>
  </blockquote>