2

I use biblatex with biber as its backend. My code is following (test.tex):

\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{ref.bib}

\begin{document}
Test test test \cite{Lee2009a}
\printbibliography
\end{document}

and ref.bib is

@article{Lee2009a,
    author  = {Lee, Geun},
    journal = {The Korean Journal of Defense Analysis},
    number  = {2},
    pages   = {205--218},
    title   = {{A Theory of Soft Power and Korea's Soft Power Strategy}},
    volume  = {21},
    year    = {2009}
}

I run biber after pdflatex. However, it only gives an empty bbl file. The whole blg file is

[0] Config.pm:354> INFO - This is Biber 2.7
[1] Config.pm:357> INFO - Logfile is 'test.blg'
[80] biber-MSWIN32:303> INFO - === 
[123] Biber.pm:359> INFO - Reading 'test.bcf'
[282] Biber.pm:835> INFO - Found 1 citekeys in bib section 0
[314] Biber.pm:3670> INFO - Processing section 0
[352] Biber.pm:3840> INFO - Looking for bibtex format file 'ref.bib' for section 0

Compiling on the command line, biber test will give the following things on cmd:

INFO - This is Biber 2.7
INFO - Logfile is 'test.blg'
INFO - Reading 'test.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'ref.bib' for section 0

biber --debug test will give (祥东 is my user name)

INFO - This is Biber 2.7
INFO - Logfile is 'test.blg'
INFO - DEBUG mode: all messages are logged to 'test.blg'
INFO - Reading 'test.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'ref.bib' for section 0
write_file 'C:\Users\祥东\AppData\Local\Temp\tlZld3jtIt\ref.bib_8456.utf8' - sysopen: No such file or directory at C:\Users\祥东\AppData\Local\Temp\par-cfe9b6ab\cache-2aa0b74e6d5e75f8e71a4b8c9501a9c7c24ddbf0\inc\lib/Biber/Input/file/bibtex.pm line 1428.

ref.bib_8456.utf8 in the last line may change at different run.

All the file are stored in a folder named testbib on my desktop.

Platform: TeX Live 2017, biblatex 3.7 and biber 2.7 on Windows 10.

  • Does your blg really contain only this lines? Where is the tex and bib-file stored? – Ulrike Fischer Jul 6 '17 at 13:56
  • 1
    How exactly do you run pdflatex and biber? Have you tried on the command line? (don't remember what thye renamed it to in Win10) – daleif Jul 6 '17 at 14:01
  • 1
    Try running without the @echo off so you can see more messages. – Andrew Swann Jul 6 '17 at 14:33
  • 2
    Try running with the --debug flag, i.e. biber --debug test and check what the .blg contains. The log should be more verbose then. – moewe Jul 6 '17 at 15:38
  • 1
    I knew it that you have something unusual in your path name. Try to relocate biber to a location without chinese (?) chars. See here github.com/plk/biber/issues/70 – Ulrike Fischer Jul 6 '17 at 16:45
1

With the hint from @Ulrike Fischer, I have some solutions:

Change a user environment variable named TEMP and TMP. Their original value should be

%USERPROFILE%\AppData\Local\Temp

It is actually C:\Users\<username>\AppData\Local\Temp. Then modify it to

%SystemRoot%\TEMP;%USERPROFILE%\AppData\Local\Temp

Now it is C:\WINDOWS\temp;C:\Users\<username>\AppData\Local\Temp.

Then run

biber --cache

to generate cache files. It will take sometime and then show the current cache location.

(You can run biber <filename> as normal. It will generate the cache files automatically)

Now biber can run normally.

More information can be found in section 4.2 in biber manual (v2.7).


Environment variables

You may find it in Control panel > System > Advanced system settings > Environment variables.... The user environment variables TEMP and TMP can be found at the top panel.

Note

I'm not sure whether this way is OK because it has changed the system behaviour.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.