在Windows中使用rdiff

问题描述 投票:0回答:2

我最近发现了 rdiff 实用程序:http://beerpla.net/2008/05/12/a-better-diff-or-what-to-do-when-gnu-diff-runs-out-of-memory- diff-memory-exhausted/ 查找 2 个大文件之间的差异。

如何在 Windows 中使用它?我正在使用 PHP 文件来执行 diff。 rdiff也是这样吗?

我想执行上面链接中的步骤。我可以用 PHP 写吗?从哪里可以执行rdiff?从Windows cmd?或者 cygwin cmd?

diff rsync cwrsync
2个回答
3
投票

这是另一个为 rdiff 准备的 Windows 二进制文件,因为 @H47 答案中的其他链接不起作用 - rdiff-2.0.2-win64.zip (mega.nz)

使用 msys2 mingw64 gcc 编译器从 librsync-2.0.2 编译。

编辑 2023:由于这个答案仍然很受欢迎,请检查官方 github librsync 存储库,因为现在有 Windows 版本。有一些可解决的问题 - 更多信息https://github.com/librsync/librsync/issues/253#issuecomment-1456291081


1
投票

您需要自己为 Windows 编译 rdiff,因为它不容易获得。这并不难,你需要:
- 从 github.com/librsync/librsync/releases 下载 librsync 源代码
- 安装 Cygwin
- 按照这些说明进行编译 librsync.sourcefrog.net/page_install.html
- 利润:-)

如果您愿意,您可以从这里使用我的 MinGW x64 版本 - www.filedropper.com/rdiff-win-200

© www.soinside.com 2019 - 2024. All rights reserved.