在 Windows 上安装 Sqitch Perl CPAN 模块

Install Sqitch Perl CPAN module on Windows

在使用最新的 Strawberry Perl 通过 CPAN 安装 sqitch 之后,我正在尝试在 Windows 10 上安装它。

cat NEWS >ReleaseNotes
'cat' is not recognized as an internal or external command,
operable program or batch file.
dmake.exe:  Error code 129, while making 'ReleaseNotes'
GUIDO/libintl-perl-1.26.tar.gz
C:\Projects\STRAWB~1\c\bin\dmake.exe -- NOT OK
Stopping: 'install' failed for 'Locale::Messages'.

很遗憾,依赖项 Locale::Messages 安装失败。它是否试图在 Windows 上调用 linux "cat" 命令?有解决方法吗?

module provides the sqitch command, which is documented here,像这样从命令行调用它:

sqitch [<options>] <command> [<command-options>] [<args>]

请注意,该文档包含指向相关教程和其他参考资料的链接,以了解如何使用它。

sqitch 默认安装在这里:

root@test:~# which sqitch
/usr/local/bin/sqitch

尝试从 Windows 的命令行搜索文件。 只需从这里抓取它并将其放在您的路径中:

https://github.com/theory/sqitch/blob/master/bin/sqitch

我刚刚在我的 Strawberry Perl 副本上安装了 App::Sqitch

它已经创建了这个文件

C:\Strawberry\perl\site\bin\sqitch.bat

如果您没有该文件,那么您的安装可能无法正常工作

如果您确实有该文件,但如果不提供完整路径就无法 运行 它,那么 C:\Strawberry\perl\site\bin 不在您的路径中