在 Windows 10 上,Biber 2.8 和 2.9 似乎无法通过此 MWE 获取远程源
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource[location=remote]{https://www.dropbox.com/s/l772znk922oyabe/example_ref.bib?dl=1}
\begin{document}
Some citation \cite{Nobody17}.
\printbibliography
\end{document}
它产生的错误是
Process started: "C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\biber.exe" "document"
Can't load 'C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-02947398048c143181ebb9c4e483433d2665ac35\4a65cefc.xs.dll' for module Net::SSLeay: load_file:The specified module could not be found at /loader/HASH(0x6b1158)/DynaLoader.pm line 193.
INFO - This is Biber 2.9 (**same thing on 2.8**)
INFO - Logfile is 'document.blg'
INFO - Reading 'document.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'https://www.dropbox.com/s/l772znk922oyabe/example_ref.bib?dl=1' for section 0
INFO - Data source 'https://www.dropbox.com/s/l772znk922oyabe/example_ref.bib?dl=1' is a remote BibTeX data source - fetching ...
Process exited with error(s)
这个错误让我认为它与 SSLeay 有关,可能与 2.8/2.9 的更新有关(尽管我没有排除 HTTP 请求)。
无法为模块 Net::SSLeay 加载‘...’...找不到指定的模块……
当我使用 Biber 2.7 和 BibLaTeX 3.7 时,没有出现此错误:
Process started: biber.exe "document"
INFO - This is Biber 2.7
INFO - Logfile is 'document.blg'
INFO - Reading 'document.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'https://www.dropbox.com/s/l772znk922oyabe/example_ref.bib?dl=1' for section 0
INFO - Data source 'https://www.dropbox.com/s/l772znk922oyabe/example_ref.bib?dl=1' is a remote BibTeX data source - fetching ...
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'C:\Users\username\AppData\Local\Temp\iAAH5MlBHD\biber_remote_data_source_i_vnI.bib'
INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Sorting list 'nty/global/' of type 'entry' with scheme 'nty' and locale 'en-US'
INFO - No sort tailoring available for locale 'en-US'
INFO - Writing 'document.bbl' with encoding 'ascii'
INFO - Output to document.bbl
Process exited normally
这是由最近更新到 Biber 2.8/2.9(以及相应的 BibLaTeX 更新)还是由其他问题引起的?
更新: 以下是更详细的错误日志:
>biber document.bcf
INFO - This is Biber 2.8
INFO - Logfile is 'document.blg'
INFO - Reading 'document.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'https://www.dropbox.com/s/l772znk922oyabe/example_ref.bib?dl=1' for section 0
INFO - Data source 'https://www.dropbox.com/s/l772znk922oyabe/example_ref.bib?dl=1' is a remote BibTeX data source - fetching ...
Can't load 'C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\bbb0be1a.xs.dll' for module Net::SSLeay: load_file:The specified module could not be found at /loader/HASH(0x260c624)/DynaLoader.pm line 193.
at /loader/HASH(0x2a210fc)/PAR/Heavy.pm line 78.
Compilation failed in require at C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\inc\lib/IO/Socket/SSL.pm line 19.
BEGIN failed--compilation aborted at C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\inc\lib/IO/Socket/SSL.pm line 19.
Compilation failed in require at C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\inc\lib/Net/HTTPS.pm line 25.
Can't load 'C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\e5d86be9.xs.dll' for module Crypt::SSLeay: load_file:The specified module could not be found at /loader/HASH(0x260c624)/DynaLoader.pm line 193.
at /loader/HASH(0x2a210fc)/PAR/Heavy.pm line 78.
Compilation failed in require at C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\inc\lib/Net/SSL.pm line 20.
Compilation failed in require at C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\inc\lib/Net/HTTPS.pm line 29.
Compilation failed in require at C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\inc\lib/LWP/Protocol/https.pm line 8.
Compilation failed in require at C:\Users\username\AppData\Local\Temp\par-4a61636f62\cache-4b419f4e7b1e3e9cdb78a8c63410aec04e2636e8\inc\lib/Biber/Input/file/bibtex.pm line 185.
更新 2:
下列的莫威的评论,清除给出的缓存biber --cache
并不能解决问题,并且使用生成的日志biber --trace
似乎没有提供任何更有用的信息。32 位和 64 位 Biber 都失败了。
更新 3: 我现在已经在 GitHub 上发起了一个问题。
更新 4: 我在另外两台完全不同的电脑上重现了该错误(总共三台)。两台 Windows 10 PC 和一台 Windows 7 PC 在两个完全不同的局域网上运行。
重现错误:
- 使用 MiKTeX 2.9 包管理器更新到 Biber 2.9 和 BibLaTeX 3.9 包。
- 在 MWE 上运行 PDFLaTeX
- 在 MWE 上运行 Biber
- 上面的错误日志应该被重现。
(附注:在 Windows 7 PC 上,我注意到第一次运行时会弹出一个窗口,提示libcrypto-1_1-x64__.dll
缺少 OpenSSL DLL。此后这个窗口再也没有弹出过,这很奇怪,并且将路径(现有的)添加为libcrypto-1_1-x64__.dll
Windows 环境变量也未能解决问题。)
答案1
这竟然是一个Biber 2.8 和 2.9 中的错误缺少对 OpenSSL libcrypto-1_1_.dll
(32 位) 和(64 位)的 DLL 引用。libcrypto-1_1-x64__.dll
我不知道该怎么做萨姆卡特和莫威设法使 Biber 2.9 正常运行(如上所述)。
这Biber 2.10 DEV 中已修复错误(开发版本)和在 SourceForge 上提供。