我在哪里可以在Windows上设置make.exe的路径?

时间:2022-05-06 22:53:14

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 about Turbo Delphi in %path% variable, maybe I can change it to MSYS in registry? Please, help.

当我尝试从Windows上的cmd-console运行make时,它运行Turbo Delphi的make.exe,但我需要MSYS的make.exe。在%path%变量中没有提到Turbo Delphi,也许我可以在注册表中将其更改为MSYS?请帮忙。

3 个解决方案

#1


28  

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

路径在注册表中,但通常通过此界面进行编辑:

  1. Go to Control Panel -> System -> System settings -> Environment Variables.
  2. 转到控制面板 - >系统 - >系统设置 - >环境变量。

  3. Scroll down in system variables until you find PATH.
  4. 向下滚动系统变量,直到找到PATH。

  5. Click edit and change accordingly.
  6. 单击编辑并相应更改。

  7. BE SURE to include a semicolon at the end of the previous as that is the delimiter, i.e. c:\path;c:\path2
  8. 确保在前一个末尾包含一个分号,因为它是分隔符,即c:\ path; c:\ path2

  9. Launch a new console for the settings to take effect.
  10. 启动新控制台以使设置生效。

#2


0  

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

为什么不创建包含以下行的bat文件makedos.bat?

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%)

并把它放在C:\ DOS(或C:\Windowsè或确保它在你的%路径%)

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

您可以从cmd,SET运行它,它会显示所有环境变量,包括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

#3


0  

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.

虽然我正确地设置了路径,但除非我在exe的目录中,否则我有一些问题没有让Terraform命令运行。

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

对于其他任何发现此问题的人,我通过将环境变量移动得比其他人更高来修复它!

#1


28  

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

路径在注册表中,但通常通过此界面进行编辑:

  1. Go to Control Panel -> System -> System settings -> Environment Variables.
  2. 转到控制面板 - >系统 - >系统设置 - >环境变量。

  3. Scroll down in system variables until you find PATH.
  4. 向下滚动系统变量,直到找到PATH。

  5. Click edit and change accordingly.
  6. 单击编辑并相应更改。

  7. BE SURE to include a semicolon at the end of the previous as that is the delimiter, i.e. c:\path;c:\path2
  8. 确保在前一个末尾包含一个分号,因为它是分隔符,即c:\ path; c:\ path2

  9. Launch a new console for the settings to take effect.
  10. 启动新控制台以使设置生效。

#2


0  

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

为什么不创建包含以下行的bat文件makedos.bat?

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%)

并把它放在C:\ DOS(或C:\Windowsè或确保它在你的%路径%)

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

您可以从cmd,SET运行它,它会显示所有环境变量,包括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

#3


0  

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.

虽然我正确地设置了路径,但除非我在exe的目录中,否则我有一些问题没有让Terraform命令运行。

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

对于其他任何发现此问题的人,我通过将环境变量移动得比其他人更高来修复它!