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

관련 정보