tectonic-typesetting / tectonic

A modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive.
https://tectonic-typesetting.github.io/
Other
3.99k stars 162 forks source link

Biblatex fails due to version mismatch #893

Open MTRNord opened 2 years ago

MTRNord commented 2 years ago

tectonic fails to build with the 2020.0r0 bundle and biblatex:

Running external tool biber ...
error: the external tool exited with an error code; its stdout was:

===============================================================================
INFO - This is Biber 2.17
INFO - Logfile is 'default.blg'
INFO - Reading 'default.bcf'
ERROR - Error: Found biblatex control file version 3.7, expected version 3.8.
This means that your biber (2.17) and biblatex (3.14) versions are incompatible.
See compat matrix in biblatex or biber PDF documentation.
INFO - ERRORS: 1
===============================================================================
error: its stderr was:

===============================================================================
===============================================================================
error: the external tool exited with error code 2

any ideas how I can fix that?

doronbehar commented 1 week ago

Not a Fedora user, but in general for every OS, I'd web search something like: " how to downgrade a package". For Fedora I'd try https://unix.stackexchange.com/questions/266888/can-i-force-dnf-to-install-an-old-version-of-a-package .

mobergmann commented 1 week ago

AFAICT is only the latest version available in the fedora mirrors:

$ sudo dnf list --showduplicates biber
Updating and loading repositories:
Repositories loaded.
Installed packages
biber.noarch 2.19-6.fc41 fedora

Available packages
biber.noarch 2.19-6.fc41 fedora

I tried to uninstall the current biber version (and with it all other texlive packages)

sudo dnf remove biber

and then I downloaded the biber 2.17 package(s, I tried many...) from kogi and installed it

sudo dnf install ./biber-2.17-5.fc37.noarch.rpm

But it didn't work, because the biber version was not compatible with the current Perl version,. I then tried to manually install the correct perl version, like with biber, but that also threw an incompatibility error.
And at that point I think it it not feasible to downgrade biber in fedora...

afonsofrancof commented 2 days ago

Lucklily I was able to fix the formula by updating two libraries to their latest version, and I uploaded the fix on my hombrew tap. To install it, just run this (updated 2024-05-01):

brew install dgfl-gh/taps/biber@2.17

It should then compile biber, which takes about 1m30s on my machine, and you should be good to go :) Remember to look for brew link failure messages in case you hadn't uninstalled the latest biber.

You use openssl@1, which is now unmaintained and uninstallable with homebrew. I have created the same Formula as you, but with the updated openssl@3, which is available on my tap

To install, just use

brew install afonsofrancof/taps/biber@2.17

Hope it helps :)