在 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%
相应地更新变量即可替换它。