Erro ao compilar XML-Parser-2.44 com Perl

1

Ao tentar perl Makefile.pl XML-Parser-2.44 enquanto chrooted no LFS, recebo este erro:

Checking if your kit is complete...
Looks good
Warning: prerequisite LWP::UserAgent 0 not found.
Have /tools/lib/perl5/5.26.0
Want /tools/lib/perl5/5.26.0/x86_64-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.26.0]
Config says: [x86_64-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Have /tools/lib/perl5/5.26.0
Want /tools/lib/perl5/5.26.0/x86_64-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.26.0]
Config says: [x86_64-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
ERROR from evaluation of /sources/XML-Parser-2.44/Expat/Makefile.PL: Failed to opendir '/tools/lib/perl5/5.26.0/x86_64-linux/CORE' to find header files: No such file or directory at /tools/lib/perl5/5.26.0/ExtUtils/MM_Any.pm line 3027.
    
por isaa6 17.09.2017 / 12:36

1 resposta

-1

Basta adicionar esta linha: /usr/local/lib a este arquivo /etc/ld.so.conf.d/local.conf e reinstalar o Perl.

$ echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf
    
por 21.04.2018 / 09:12

Tags