pod2man 失败,预期文本不是数字

pod2man fails with expected text not a number

我正在构建旧版本的 openSSL 来做一些测试, 但构建失败。我已经修复了几件事,但现在有 买了一个新的,日志报告说安装失败 手册页。

        created directory `/Users/AuserName/Documents/proj/folderName/folderNameA/OpenSSL/tt/OpenSSL-for-iPhone/bin/iPhoneSimulator10.3-i386.sdk/man'
        created directory `/Users/AuserName/Documents/proj/folderName/folderNameA/OpenSSL/tt/OpenSSL-for-iPhone/bin/iPhoneSimulator10.3-i386.sdk/man/man1'
        created directory `/Users/AuserName/Documents/proj/folderName/folderNameA/OpenSSL/tt/OpenSSL-for-iPhone/bin/iPhoneSimulator10.3-i386.sdk/man/man3'
        created directory `/Users/AuserName/Documents/proj/folderName/folderNameA/OpenSSL/tt/OpenSSL-for-iPhone/bin/iPhoneSimulator10.3-i386.sdk/man/man5'
        created directory `/Users/AuserName/Documents/proj/folderName/folderNameA/OpenSSL/tt/OpenSSL-for-iPhone/bin/iPhoneSimulator10.3-i386.sdk/man/man7'
        installing man1/CA.pl.1
        installing man1/asn1parse.1
        installing man1/ca.1
        installing man1/ciphers.1
        installing man1/cms.1
        cms.pod around line 457: Expected text after =item, not a number
        cms.pod around line 461: Expected text after =item, not a number
        cms.pod around line 465: Expected text after =item, not a number
        cms.pod around line 470: Expected text after =item, not a number
        cms.pod around line 474: Expected text after =item, not a number
        POD document had syntax errors at /usr/bin/pod2man5.18 line 72.

图像中的 pod 文件内容,因此您可以看到行号:

"=item" 后面只能跟一个选项字符串,如本例所示:

=item B<--option>

如果你想将值传递给选项,你可以这样做:

=item B<--option>=I<value> 

请注意,选项字符串必须包含在 B<> 中,值字符串必须包含在 I<> 中。

看来pod2man并不是普遍不喜欢数字,而是不喜欢一个特定的数字:零。因此,尝试将 =item 0. 的所有情况更改为 =item 1. 并通过加 1 进一步提高潜力 =item <some number>

我在 Net::IRC 的 POD 中解决了同样的问题,效果很好。