Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
135 views
in Technique[技术] by (71.8m points)

c++ - Setting up bazel as an environment variable windows

I've been trying to use bazel on Windows 10 Pro, and I was following the instructions located at https://docs.bazel.build/versions/3.7.0/install-windows.html

I found the place to add user-specific and system-wide environment variables, and I added the path to bazel.exe and called the variable bazel, but when I try to type bazel into a command prompt window, it still isn't recognized.

Let me know if you need any more detail to help answer my question, I'm confused where I'm going wrong.

bazel set as environment variable

not recognizing bazel

question from:https://stackoverflow.com/questions/65861846/setting-up-bazel-as-an-environment-variable-windows

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I think that you have to add the bazel binary path to your 'path' environment variable. So search for Edit system environment variables -> Advanced -> Environment variables

and then under System Variables -> path -> edit you can add the path of your bazel bin (C:UserPandaDocuments) and it should work. Detailed description with screenshots it's here: https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...