对于 Windows 来说,什么命令相当于 Linux 安装命令?

对于 Windows 来说,什么命令相当于 Linux 安装命令?

在 PowerShell 中运行install命令得到以下结果:

$ install
install : The term 'install' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ install
+ ~~~~~~~
+ CategoryInfo          : ObjectNotFound: (install:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

基本上,我想make install为 Windows 开发人员提供一个目标。在 Linux 上,make install使用install命令将其从本地路径移动到系统路径。是否有适用install于 Windows 用户的等效命令?

答案1

不,GNU 没有等效的install。但是,您可能只需复制二进制文件并%PATH%相应地更新变量即可替换它。

相关内容