![Texstudio Biber 编译错误](https://linux22.com/image/474018/Texstudio%20Biber%20%E7%BC%96%E8%AF%91%E9%94%99%E8%AF%AF.png)
我正在尝试将 biblatex 与 TexStudio 一起使用,但遇到了困难。
我尝试按照以下说明设置 Texstudio:如何正确编译和运行 BibLaTeX,但即使对于没有参考书目的文件,也无法进行编译。
以下是 MWE:
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\title{Title}
\author{Author}
\begin{document}
\maketitle
\end{document}
下面是我的 Texstudio 编译设置的照片。对于默认编译器,我有:pdflatex、biber、pdflatex、pdflatex 作为默认编译器,并将 biber 设为默认参考书目工具
我使用的是 Texstudio 4.7.1,在最新版本 4.7.2 中,我在输入方程式时发现了一些奇怪的文本突出显示,所以我回到了 4.7.1。
当我使用上述设置运行上述 tex 文件时出现以下错误:
Process started: /Library/TeX/texbin/pdflatex -synctex=1 -interaction=nonstopmode "test_file".tex
Process exited normally
Process started: /Library/TeX/texbin/biber "test_file"
dyld[42643]: Library not loaded: /opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: <13F64F77-06B2-3380-939A-92FD929CDF70> /private/var/folders/zz/py2wclgx0w16rzwlr4mz3f340000gn/T/par-6d61787a686f75/cache-6bef3f811cde577dd70e44f9f5046ebc66712c46/biber Reason: tried: '/opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib' (no such file), '/opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib' (no such file), '/usr/local/lib/libperl.dylib' (no such file), '/usr/lib/libperl.dylib' (no such file, not in dyld cache)
Error: Command crashed: /Library/TeX/texbin/biber "test_file"
Process exited with error(s)
Process started: /Library/TeX/texbin/pdflatex -synctex=1 -interaction=nonstopmode "test_file".tex
Process exited normally
Process started: /Library/TeX/texbin/pdflatex -synctex=1 -interaction=nonstopmode "test_file".tex
Process exited normally
显然 Biber 步骤出了问题,但我该如何修复它?如果我将默认编译器更改为只执行 pdflatex,则一切正常。
答案1
[之所以写在这里,是因为评论太长,而且原帖者在聊天中声望太低。这不是答案,稍后会被删除或重写,所以请忽略。]
Process started: /Library/TeX/texbin/pdflatex -synctex=1 -interaction=nonstopmode "test_file".tex
Process exited normally
pdfTeX 可以很好地编译该文档。
Process started: /Library/TeX/texbin/biber "test_file"
dyld[42643]: Library not loaded: /opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: <13F64F77-06B2-3380-939A-92FD929CDF70> /private/var/folders/zz/py2wclgx0w16rzwlr4mz3f340000gn/T/par-6d61787a686f75/cache-6bef3f811cde577dd70e44f9f5046ebc66712c46/biber Reason: tried: '/opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib' (no such file), '/opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE/libperl.dylib' (no such file), '/usr/local/lib/libperl.dylib' (no such file), '/usr/lib/libperl.dylib' (no such file, not in dyld cache)
Error: Command crashed: /Library/TeX/texbin/biber "test_file"
Process exited with error(s)
即使您没有参考书目,您也要求运行 Biber。Biber 需要找到由 pdfTeX 运行生成的文件。如果该文件不存在,则尝试运行 Biber 会出错。因此,此处预计会出现错误。
话虽如此,我不确定这错误是意料之中的。看起来biber
甚至在查找生成的文件之前就崩溃了。例如,如果我编译你的代码,我会得到
INFO - This is Biber 2.19
INFO - Logfile is 'prawf.blg'
ERROR - Cannot find 'prawf.bcf'!
INFO - ERRORS: 1
日志文件显示
[0] Config.pm:307> INFO - This is Biber 2.19
[0] Config.pm:310> INFO - Logfile is 'prawf.blg'
[90] biber:340> INFO - === Mer Chw 21, 2024, 04:21:06
[280] Utils.pm:410> ERROR - Cannot find 'prawf.bcf'!
[280] Biber.pm:136> INFO - ERRORS: 1
你有文件吗<filename>.blg
?
做什么which -a perl
并perl --version
返回什么?
你是如何安装 TeX 的?(例如 MacTeX?或者......?)