在 Windows 10 上运行 Bibliography 时出现错误,使用 MikTex 2.9 和 TexStudio 2.10,运行 biblatex 3.1 和 biber 2.2,全部为 64 位。
Process started: biber.exe "MWE"
Error: Command crashed: biber.exe "MWE"
Process exited with error(s)
日志文件中有以下错误:
Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'MWE.bbl' not found.
No file MWE.bbl.
Package biblatex Info: Reference section=0 on input line 10.
Package biblatex Info: Reference segment=0 on input line 10.
LaTeX Warning: Citation 'john' on page 1 undefined on input line 11.
LaTeX Warning: Empty bibliography on input line 12.
我正在运行以下代码:
\documentclass{article}
\begin{filecontents*}{bibliography.bib}
@book{john,
author = {John Johnson},
title = {Booktitle},
year = {2016}
}
\end{filecontents*}
\usepackage[backend=biber]{biblatex}
\addbibresource{bibliography.bib}
\begin{document}
Hello\cite{john}.
\printbibliography
\end{document}
我也尝试从命令行运行:
biber --tool MWE.bib
这给了我以下错误:
The procedure entry point Perl_gv_fetchpv could not be located in the dynamic link library
C:\Users\Username\AppData\Local\Temp\par-726f676965\cache-19a661c7206c3f168e864t6as864\biber.exe
删除 par-726f676965 文件夹也无济于事。
有任何想法吗?
答案1
只需将 bib 文件的文件名从 更改为\bibliography.bib
即可bibliography.bib
。这将启动导致错误的\
命令。\bibliography
以下 MWE 使用我当前的 miktex 进行编译,没有任何错误:
\documentclass{article}
\begin{filecontents*}{bibliography.bib} % <================================
@book{john,
author = {John Johnson},
title = {Booktitle},
year = {2016}
}
\end{filecontents*}
\usepackage[backend=biber]{biblatex}
\addbibresource{bibliography.bib} % <================================
\begin{document}
Hello \cite{john}.
\printbibliography
\end{document}
答案2
对我来说,彻底重新安装 MikTex 是解决方案。另请参阅开篇帖子的评论。