You are not logged in.

#1 2017-07-12 18:19:38

valandil
Member
Registered: 2008-03-11
Posts: 82

[SOLVED] biber aborting with perl error

It's been a while since I've used biber, so I can't pinpoint what upgrade caused this, but biber keeps throwing this error when I try to run it:

valandil ~/build/biber/trunk $ biber
DateTime::Locale version 1.06 required--this is only version 0.45 at /usr/lib/perl5/vendor_perl/DateTime.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/DateTime.pm line 16.
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 9.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Biber/Constants.pm line 9.
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.

Trying to compile it from source yields the same error. The header of /usr/lib/perl5/vendor_perl/Datetime.pm shows that the DateTime::Locale version is indeed 1.06, not 0.45.

valandil ~/build/biber/trunk $ head -n 20 /usr/lib/perl5/vendor_perl/DateTime.pm 
## no critic (Modules::ProhibitExcessMainComplexity)
package DateTime;

use 5.008004;

use strict;
use warnings;
use warnings::register;
use namespace::autoclean 0.19;

our $VERSION = '1.42';

use Carp;
use DateTime::Duration;
use DateTime::Helpers;
use DateTime::Locale 1.06;
use DateTime::TimeZone 2.02;
use DateTime::Types;
use POSIX qw( floor fmod );
use Params::ValidationCompiler 0.13 qw( validation_for );

I've tried reinstalling all of biber's dependencies, some of them by compiling from source, to no avail.

Last edited by valandil (2017-07-12 19:00:21)

Offline

#2 2017-07-12 18:27:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [SOLVED] biber aborting with perl error

What version of perl-datetime-locale? Anything in any of the site_perl dirs?

What you posted is perl-datetime wanting version 1.06 of perl-datetime-locale, not that it's the correct version.

Last edited by Scimmia (2017-07-12 18:28:38)

Offline

#3 2017-07-12 18:44:49

valandil
Member
Registered: 2008-03-11
Posts: 82

Re: [SOLVED] biber aborting with perl error

I have the latest perl-datetime-locale.

valandil ~ $ yaourt -Ss perl-datetime-locale
community/perl-datetime-locale 1.16-3 [installed]
    Localization support for DateTime.pm

What should I be looking for in site_perl? I have DateTimePP.pm and DateTimePPExtra.pm in /usr/lib/perl5/site_perl/, and the directory /usr/lib/perl5/site_perl/auto/DateTime/Locale/ appears to be empty.

Offline

#4 2017-07-12 18:48:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [SOLVED] biber aborting with perl error

And where did those come from?

Offline

#5 2017-07-12 18:50:54

valandil
Member
Registered: 2008-03-11
Posts: 82

Re: [SOLVED] biber aborting with perl error

Not sure. pkgfile does not list any package for those files. Renaming them DateTimePP{Extra}.pm.backup does not help, in any case.

Offline

#6 2017-07-12 18:56:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [SOLVED] biber aborting with perl error

Packages won't put anything in the site_perl dirs. If there's something there, it's something that came from outside the repos and something that you're responsible for maintaining and managing. Make sure to check /usr/share/perl5/site_perl/ as well.

Offline

#7 2017-07-12 19:00:03

valandil
Member
Registered: 2008-03-11
Posts: 82

Re: [SOLVED] biber aborting with perl error

I don't recall ever installing perl packages in site_perl. Then again, this is a pretty old system. I probably got careless with CPAN once or something.  Renaming /usr/{lib,share}/perl5/site_perl to --/site_perl.backup seems to have done it. Thanks!

Offline

Board footer

Powered by FluxBB