对于Windows上的安装,git-slave文档只有以下一些不太有用的注释:
* Limited windows support
Multiple users have been successful in using gitslave with Windows.
This is "supported" only in the sense that people have reported it to
work and we accept bugfixes, not that you can `make` install or check,
or that it is QAed on this platform prior to release."当我尝试下载并运行'nmake install‘时,我得到了同样神秘的错误:
makefile(2) : fatal error U1001: syntax error : illegal character '{' in macro
Stop.有没有人有这方面的经验,可以给我指出正确的方向?
发布于 2012-09-11 11:00:34
git-slave的Makefile仅用于GNU Make --因为它是一个相当简单的makefile,没有理由不能与Microsoft nmake一起使用,除了“无端”使用Microsoft nmake不支持的Make扩展。( How similar/different are gnu make, microsoft nmake and posix standard make?对差异有一个很好的总结)。
在gitslave/Makefile的第2-4行,如果您将${prefix}替换为$(prefix),并将${mandir}替换为$(mandir),则nmake应该不会再阻塞Makefile。但是,除非您安装了一些POSIX实用程序或允许mkdir -p、rm -f和sed等命令工作的工具,否则修复nmake不兼容只会允许(充其量) make testcheck工作。
没有一个gitslave开发人员有常规的(?)访问Windows开发机器,所以就像文档中说的那样:“我们接受错误修复,但不能声称您可以make安装或检查,或者说它在这个平台上是QAed。”
我想其他在windows上使用git-slave的人只是确保Perl和gitslave以及gitslave所依赖的任何POSIX实用程序(例如grep和rm)都安装在PATH中的某个位置。
发布于 2017-01-24 01:55:22
在Windows上,你可以下载并安装免费的unix工具包,包括所有必要的程序:https://sourceforge.net/projects/unxutils/
您还需要一个perl工具箱,因为make过程中使用了"pod2man“。此外,脚本"gits“是一个在*ix下运行的perl脚本,因为第一行中的”she bang“指令("#!/usr/bin/perl") -这在Windows上不起作用。
我创建了一个小的包装器批处理脚本,它使用我的perl来启动原始脚本: gits.bat: perl gits%*
希望这能有所帮助。
https://stackoverflow.com/questions/12347332
复制相似问题