Perlを使用してXML-Parser-2.44をコンパイルするときにエラーが発生しました。

Perlを使用してXML-Parser-2.44をコンパイルするときにエラーが発生しました。

LFSでchroot中にperl Makefile.plXML-Parser-2.44を試みると、次のエラーが発生します。

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.

ベストアンサー1

/usr/local/libこのファイルに次の行を追加し/etc/ld.so.conf.d/local.confてPerlを再インストールしてください。

$ echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf

おすすめ記事