Biber 无法正常工作:区域设置不正确

Biber 无法正常工作:区域设置不正确

我在新款 MacBook Pro 上运行 biber,但我不知道为什么会出现这样的错误。当我尝试在 beamer 讲义上运行 biber 时,出现了以下错误:

Running `Biber' on `handout' with ``biber handout''
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LC_ALL = (unset),
    LANG = "en_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
INFO - This is Biber 2.12
INFO - Logfile is 'handout.blg'
INFO - Reading 'handout.bcf'
INFO - Found 0 citekeys in bib section 0
WARN - The file 'handout.bcf' does not contain any citations!
INFO - Writing 'handout.bbl' with encoding 'UTF-8'
INFO - Output to handout.bbl
INFO - WARNINGS: 1

有人能帮我理解这些吗?这是一个测试文档的示例

\documentclass[12pt,a4paper]{article} % or whatever

\usepackage[
backend=biber,
        bibstyle=biblatex-langsci-unified,
        useprefix=true,
        citestyle=langsci-authoryear-comp,
        maxcitenames=3,
        maxbibnames=99]{biblatex}

\addbibresource{bib.bib}

\begin{document}

This is a test \parencite{kutschlojenga94}.

\printbibliography
\end{document}

bib.bib 文件包含

@Article{kutschlojenga94,
  author =   {Kutsch Lojenga, Constance},
  title =    {Kubudu},
  subtitle =     {A {Bantu} language with nine vowels},
  journal =      {African Languages},
  year =     1994,
  volume =   9,
  pages =    {127--34}}

更新:感谢那些一直在提供帮助的人。我添加了 \addbibresource{bib.bib}。运行 LaTeX、biber、LaTeX、LaTeX 后,.blg 文件显示

[0] Config.pm:304> INFO - This is Biber 2.12
[0] Config.pm:307> INFO - Logfile is 'test.blg'
[47] biber-darwin:315> INFO - === Tue Jul 16, 2019, 10:29:52
[71] Biber.pm:371> INFO - Reading 'test.bcf'
[158] Biber.pm:889> INFO - Found 0 citekeys in bib section 0
[166] Utils.pm:193> WARN - The file 'test.bcf' does not contain any citations!
[173] bbl.pm:636> INFO - Writing 'test.bbl' with encoding 'UTF-8'
[173] bbl.pm:739> INFO - Output to test.bbl
[173] Biber.pm:110> INFO - WARNINGS: 1

.tex、.bib、.blg 和 .log 文件可在 github 上找到:https://github.com/JJSandstedt/Biber_issue_stack_exchange

答案1

perl: warning: Setting locale failed.

很可能是由于您的区域设置不正常。您有

en_DE.UTF-8

即“德国使用的英语”(或德语本地化的英语)。您的系统很可能没有这些设置的语言环境定义。

在谷歌上搜索这个问题和类似的问题,你会发现https://askubuntu.com/q/710955/57634https://stackoverflow.com/q/44243909https://stackoverflow.com/q/9991603


如果您在语言/区域设置中选择了可以找到的区域设置(例如美国英语、英国英语、德语(德国)等),则问题应该会消失。如果您想坚持下去,en_DE.utf8您可能需要定义区域设置,请参阅前面的链接。无论如何,只要可以找到 Biber 所需的排序区域设置(通常这些区域设置是从文档设置中选择的,因此您的通用设置应该无关紧要),我预计这不会带来什么问题。

相关内容