The biber command on my installation does not work.
It seems that some Perl modules are not installed correctly.
I tried following this post and ran pacman -Rns texlive biber and thereafter pacman -Syu texlive biber,
but exactly the same problem remains.
For example, if I try to run biber on a document, I obtain:
❯ biber output/main
Can't locate mro.pm in @INC (you may need to install the mro module) (@INC entries checked: /usr/lib/perl5/5.40/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.40/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.40/core_perl /usr/share/perl5/core_perl) at /usr/share/perl5/vendor_perl/MRO/Compat.pm line 38.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MRO/Compat.pm line 44.
Compilation failed in require at /usr/share/perl5/vendor_perl/Specio/OO.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Specio/OO.pm line 8.
Compilation failed in require at /usr/share/perl5/vendor_perl/Specio/Coercion.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Specio/Coercion.pm line 8.
Compilation failed in require at /usr/share/perl5/vendor_perl/Specio/Declare.pm line 11.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Specio/Declare.pm line 11.
Compilation failed in require at /usr/lib/perl5/5.40/vendor_perl/DateTime/Types.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.40/vendor_perl/DateTime/Types.pm line 12.
Compilation failed in require at /usr/lib/perl5/5.40/vendor_perl/DateTime/Duration.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.40/vendor_perl/DateTime/Duration.pm line 12.
Compilation failed in require at /usr/lib/perl5/5.40/vendor_perl/DateTime.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.40/vendor_perl/DateTime.pm line 14.
Compilation failed in require at /usr/share/perl5/vendor_perl/Biber/Date/Format.pm line 6.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Biber/Date/Format.pm line 6.
Compilation failed in require at /usr/share/perl5/vendor_perl/Biber/Constants.pm line 10.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Biber/Constants.pm line 10.
Compilation failed in require at /usr/share/perl5/vendor_perl/Biber/Internals.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Biber/Internals.pm line 7.
Compilation failed in require at /usr/share/perl5/core_perl/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Biber.pm line 5.
Compilation failed in require at /usr/bin/vendor_perl/biber line 17.
BEGIN failed--compilation aborted at /usr/bin/vendor_perl/biber line 17.
Note that this command worked before, on the same document.
Does anyone, by any chance, have an idea how to fix it?
Thank you for the reply.
Yes I did a full system update yesterday before trying to reinstall texlive.
It seems mro is already installed, or at least the only thing close to it:
❯ pacman -Ss mro
extra/perl-mro-compat 0.15-4 [installed]
mro::* interface compatibility for Perls < 5.9.5
extra/python-inwx-domrobot 3.2.0-1
INWX API Python Client
mro.pm is already provided by core/perl (pacman -Fx mro.pm)
Do you have a special latex setup? Specifically, you might have a configuration file in ~/.texlive?
Sometimes, when updating the underlying software, intermediate files might be incompatible like the .aux files (or bbl, or whatever). I recommend compiling from scratch. (If using latexmk, this could be done with latexmk -gg or latexmk -C, well, or manually of course.)
I always compile via the terminal, simply with xelatex main.tex (or actually xelatex main.tex --output-directory=output to hide all the auxiliary files).
But the problem doesn’t seem to be the latex compilation.
Simply running biber (without arguments) results in the same error, so I guess just the biber installation is broken.
❯ pacman -Qk perl
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/Math/BigInt/ (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/Math/BigInt/FastCalc/ (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/Math/BigInt/FastCalc/FastCalc.so (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/attributes/ (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/attributes/attributes.so (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/mro/ (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/mro/mro.so (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/re/ (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/re/re.so (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/threads/ (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/threads/shared/ (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/threads/shared/shared.so (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/auto/threads/threads.so (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/lib.pm (No such file or directory)
warning: perl: /usr/lib/perl5/5.40/core_perl/mro.pm (No such file or directory)
perl: 3136 total files, 15 missing files
Thereafter I ran sudo pacman -Syu perl and now biber works again!
Thanks!