J
J
Juster2017-03-14 10:18:59
Windows
Juster, 2017-03-14 10:18:59

Why don't windows tools add themselves to PATH?

Many development tools contain binaries that must be run from the command line. By default, they are not put in PATH, and you have to do it yourself. Why are they not added to PATH themselves? To avoid name collisions?
And more extra. question: why do you often have to write environment variables manually? Any SOME_SDK_HOME, SOME_LIB_PATH, etc. Again, why don't they add it themselves?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
1
15432, 2017-03-14
@15432

I installed several progs that prescribe themselves in PATH. And then almost the whole system stopped working - task manager, explorer, everything stopped opening. It turned out that the length of PATH exceeded the character limit and the system stopped processing it. Accordingly, Windows / System32 also "disappeared", hence all the glitches that appeared. Removed manually from PATH all sorts of Intel and Nvidia with long paths, it worked

V
vintage, 2017-03-14
@vintage

Because these tools were originally developed not for windows, and the authors are either lazy, or "Windows users must suffer", or both. Normal tools prescribe everything themselves.

R
res2001, 2017-03-14
@res2001

For example, Visual Studio has versions of utilities for building under x86 and x64, they have the same names, they are in different directories. What, order, a way to register in PATH? Both - not an option - the names are the same, the one that is written first will always be executed. To resolve the situation, VS comes with special batch files that set up the environment for manual assembly, and the studio itself correctly determines the paths depending on the project settings.
For mingw - similarly, for gcc - the names for all tools are the same.
Well, etc., I think the reason should become clear and what to do so that everything works the same.
For example, I inserted the launch of Eclipsa into a batch file, where before the start of Eclipsa itself, the corresponding batch file from the studio is launched, so Eclipse has access to the necessary set of compilation tools from the studio.
And in general, I often use manual assembly in both mingw and microsoft compilers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question