2017-08-08 34 views
0

我正在構建一箇舊版本的openSSL來做一些測試,但是構建失敗。我已經修復了幾件事情,但現在有 得到了一個新的,日誌報告說,它安裝 手冊頁時失敗。pod2man失敗,期望的文本不是數字

 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文件的內容,所以你可以看到行號: enter image description here

+0

也許嘗試'make install_sw'來避免構建man頁面? – jww

回答

0

「=項目」只能跟一個選項字符串就像這個例子:

=item B<--option> 

,如果你想在值選項傳遞,你做這樣的事情:

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

請注意,選項字符串必須包含在B <>中,並且值字符串必須包含在I <>中。

+0

謝謝德文,我在哪裏可以找到關於pod文件的一些信息,他們如何工作以及如何製作它們。現在我只是禁用了構建文檔。 感謝您的幫助。 – Wayne

+0

@Wayne你可以在這裏找到關於pod2man的一些信息:https://perldoc.perl.org/pod2man.html –

+0

謝謝德文。還有一個問題,是手動輸入pod文件還是以某種方式從源文件生成它們? – Wayne

0

看起來pod2man一般不喜歡數字,但不喜歡一個具體數字:零。因此,嘗試將=item 0.的所有情況更改爲=item 1.,並通過加1來進一步提升潛力=item <some number>

對我來說,在Net :: IRC的POD中解決同樣的問題已經很好了。