[Cygwin][Perl]XML::Parserがインストールできないときの対処法

% cpanm Amazon::S3
--> Working on Amazon::S3
Fetching http://www.cpan.org/authors/id/T/TI/TIMA/Amazon-S3-0.45.tar.gz ... OK
Configuring Amazon-S3-0.45 ... OK
==> Found dependencies: XML::Simple
--> Working on XML::Simple
Fetching http://www.cpan.org/authors/id/G/GR/GRANTM/XML-Simple-2.20.tar.gz ... OK
Configuring XML-Simple-2.20 ... OK
==> Found dependencies: XML::SAX::Expat
--> Working on XML::SAX::Expat
Fetching http://www.cpan.org/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz ... OK
Configuring XML-SAX-Expat-0.51 ... OK
==> Found dependencies: XML::Parser
--> Working on XML::Parser
Fetching http://www.cpan.org/authors/id/T/TO/TODDR/XML-Parser-2.41.tar.gz ... OK
Configuring XML-Parser-2.41 ... OK
Building and testing XML-Parser-2.41 ... FAIL
! Installing XML::Parser failed. See /home/DK/.cpanm/work/1392719173.5292/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'XML::Parser' is not installed
! Bailing out the installation for XML-SAX-Expat-0.51.
! Installing the dependencies failed: Module 'XML::SAX::Expat' is not installed
! Bailing out the installation for XML-Simple-2.20.
! Installing the dependencies failed: Module 'XML::Simple' is not installed
! Bailing out the installation for Amazon-S3-0.45.
これは、expatライブラリが不足しているのが原因です。

解決法

libexpat-develをインストールしましょう。
apt-cyg install libexpat-devel
参考:[Perl]XML::Parserがインストールできないときの対処法
カテゴリ:

人気記事