Where can I set path to make.exe on Windows?

后端 未结 5 1135
鱼传尺愫
鱼传尺愫 2020-12-24 01:49

When I try run make from cmd-console on Windows, it runs Turbo Delphi\'s make.exe but I need MSYS\'s make.exe. There is no mention abo

相关标签:
5条回答
  • 2020-12-24 02:02

    here I'm providing solution to setup terraform enviroment variable in windows to beginners.

    1. Download the terraform package from portal either 32/64 bit version.
    2. make a folder in C drive in program files if its 32 bit package you have to create folder inside on programs(x86) folder or else inside programs(64 bit) folder.
    3. Extract a downloaded file in this location or copy terraform.exe file into this folder. copy this path location like C:\Programfile\terraform\
    4. Then got to Control Panel -> System -> System settings -> Environment Variables

    Open system variables, select the path > edit > new > place the terraform.exe file location like > C:\Programfile\terraform\

    and Save it.

    1. Open new terminal and now check the terraform.
    0 讨论(0)
  • 2020-12-24 02:03

    Or you can just run power-shell command to append extra folder to the existing path:

    $env:Path += ";C:\temp\terraform" 
    
    0 讨论(0)
  • 2020-12-24 02:04

    I had issues for a whilst not getting Terraform commands to run unless I was in the directory of the exe, even though I set the path correctly.

    For anyone else finding this issue, I fixed it by moving the environment variable higher than others!

    0 讨论(0)
  • 2020-12-24 02:21

    The path is in the registry but usually you edit through this interface:

    1. Go to Control Panel -> System -> System settings -> Environment Variables.
    2. Scroll down in system variables until you find PATH.
    3. Click edit and change accordingly.
    4. BE SURE to include a semicolon at the end of the previous as that is the delimiter, i.e. c:\path;c:\path2
    5. Launch a new console for the settings to take effect.
    0 讨论(0)
  • 2020-12-24 02:22

    Why don't you create a bat file makedos.bat containing the following line?

    c:\DOS\make.exe %1 %2 %5
    

    and put it in C:\DOS (or C:\Windowsè or make sure that it is in your %path%)

    You can run from cmd, SET and it displays all environment variables, including PATH.

    In registry you can find environment variables under:

    • HKEY_CURRENT_USER\Environment
    • HKEY_CURRENT_USER\Volatile Environment
    • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment
    0 讨论(0)
提交回复
热议问题