如何使用 ctanupload 发送包到 CTAN?(我收到错误)

如何使用 ctanupload 发送包到 CTAN?(我收到错误)

我正在尝试向 CTAN 发送一个新包,我想使用手册中提供的 makefile ctanupload。这是我的文件的样子

CONTRIBUTION = metrix
NAME = Tobias Weh
EMAIL = [email protected]
DIRECTORY = /macros/latex/contrib/${CONTRIBUTION}
LICENSE = free
FREEVERSION = lppl
FILE = ${CONTRIBUTION}.tar.gz

export CONTRIBUTION VERSION NAME EMAIL SUMMARY DIRECTORY DONOTANNOUNCE ANNOUNCE NOTES LICENSE FREEVERSION FILE

ctanify: ${FILE}

${CONTRIBUTION}.sty: ${CONTRIBUTION}.ins ${CONTRIBUTION}.dtx
    yes | tex $<

${FILE}: ${CONTRIBUTION}.dtx ${CONTRIBUTION}.ins ${CONTRIBUTION}.sty README ${CONTRIBUTION}-doc.pdf
    ctanify $^

upload: ctanify
    ctanupload -p

将此文件保存为makefilemetrix/我可以用它运行它make,至少ctanify会生成.tar.gz文件,但之后什么也没有发生。当我尝试ctanupload -p直接从终端调用时,出现此错误:

Tobis-Mac:metrix Tobi$ ctanupload -p
Can't locate WWW/Mechanize.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /usr/texbin/ctanupload line 434.
BEGIN failed--compilation aborted at /usr/texbin/ctanupload line 434.
Tobis-Mac:metrix Tobi$ ctanupload -p
Can't locate WWW/Mechanize.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /usr/texbin/ctanupload line 434.
BEGIN failed--compilation aborted at /usr/texbin/ctanupload line 434.

我在 MacBook Pro 上使用 Mac OS X 10.8。我的 TeX Live 2013 已尽可能更新。我的 Perl 有版本号v5.12.4(我找不到如何更新……)

答案1

Martin 向我指出了正确的 Google 搜索 :-)WWW::Mechanize缺少该软件包,我可以cpan使用以下命令安装它

$ cpan install WWW::Mechanize

相关内容