Я пытаюсь установить модуль XML :: Parser perl с помощью CPAN и не могу заставить его работать. Ниже приведен вывод, отображаемый CPAN, который указывает на то, что проблема связана с Expat. Я убедился, что в системе установлена последняя версия Expat.
Установка этого очень важна для нас, и я не знаю, что делать дальше. Любая помощь будет принята с благодарностью!
Проверка за границей
# yum install expat-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* rpmforge: fr2.rpmfind.net
amzn | 2.1 kB 00:00
Setting up Install Process
Package expat-devel-1.95.8-8.3.8.amzn1.i386 already installed and latest version
Nothing to do
XML :: Parser Install
cpan[1]> install XML::Parser
CPAN: Storable loaded ok (v2.21)
Going to read '/root/.cpan/Metadata'
Database was generated on Tue, 03 May 2011 00:28:04 GMT
Running install for module 'XML::Parser'
CPAN: YAML loaded ok (v0.72)
Running make for C/CH/CHORNY/XML-Parser-2.40.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.03)
Checksum for /root/.cpan/sources/authors/id/C/CH/CHORNY/XML-Parser-2.40.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN: Archive::Tar loaded ok (v1.68)
XML-Parser-2.40
XML-Parser-2.40/Changes
XML-Parser-2.40/Makefile.PL
XML-Parser-2.40/MANIFEST
XML-Parser-2.40/META.yml
XML-Parser-2.40/Parser.pm
XML-Parser-2.40/README
XML-Parser-2.40/Expat
XML-Parser-2.40/Expat/encoding.h
XML-Parser-2.40/Expat/Expat.pm
XML-Parser-2.40/Expat/Expat.xs
XML-Parser-2.40/Expat/Makefile.PL
XML-Parser-2.40/Expat/typemap
XML-Parser-2.40/inc
XML-Parser-2.40/inc/Devel
XML-Parser-2.40/inc/Devel/CheckLib.pm
XML-Parser-2.40/Parser
XML-Parser-2.40/Parser/LWPExternEnt.pl
XML-Parser-2.40/Parser/Encodings
XML-Parser-2.40/Parser/Encodings/big5.enc
XML-Parser-2.40/Parser/Encodings/euc-kr.enc
XML-Parser-2.40/Parser/Encodings/ibm866.enc
XML-Parser-2.40/Parser/Encodings/iso-8859-2.enc
XML-Parser-2.40/Parser/Encodings/iso-8859-3.enc
XML-Parser-2.40/Parser/Encodings/iso-8859-4.enc
XML-Parser-2.40/Parser/Encodings/iso-8859-5.enc
XML-Parser-2.40/Parser/Encodings/iso-8859-7.enc
XML-Parser-2.40/Parser/Encodings/iso-8859-8.enc
XML-Parser-2.40/Parser/Encodings/iso-8859-9.enc
XML-Parser-2.40/Parser/Encodings/Japanese_Encodings.msg
XML-Parser-2.40/Parser/Encodings/koi8-r.enc
XML-Parser-2.40/Parser/Encodings/README
XML-Parser-2.40/Parser/Encodings/windows-1250.enc
XML-Parser-2.40/Parser/Encodings/windows-1251.enc
XML-Parser-2.40/Parser/Encodings/windows-1252.enc
XML-Parser-2.40/Parser/Encodings/windows-1255.enc
XML-Parser-2.40/Parser/Encodings/x-euc-jp-jisx0221.enc
XML-Parser-2.40/Parser/Encodings/x-euc-jp-unicode.enc
XML-Parser-2.40/Parser/Encodings/x-sjis-cp932.enc
XML-Parser-2.40/Parser/Encodings/x-sjis-jdk117.enc
XML-Parser-2.40/Parser/Encodings/x-sjis-jisx0221.enc
XML-Parser-2.40/Parser/Encodings/x-sjis-unicode.enc
XML-Parser-2.40/Parser/Style
XML-Parser-2.40/Parser/Style/Debug.pm
XML-Parser-2.40/Parser/Style/Objects.pm
XML-Parser-2.40/Parser/Style/Stream.pm
XML-Parser-2.40/Parser/Style/Subs.pm
XML-Parser-2.40/Parser/Style/Tree.pm
XML-Parser-2.40/samples
XML-Parser-2.40/samples/canonical
XML-Parser-2.40/samples/canontst.xml
XML-Parser-2.40/samples/ctest.dtd
XML-Parser-2.40/samples/REC-xml-19980210.xml
XML-Parser-2.40/samples/xmlcomments
XML-Parser-2.40/samples/xmlfilter
XML-Parser-2.40/samples/xmlstats
XML-Parser-2.40/t
XML-Parser-2.40/t/astress.t
XML-Parser-2.40/t/cdata.t
XML-Parser-2.40/t/decl.t
XML-Parser-2.40/t/defaulted.t
XML-Parser-2.40/t/encoding.t
XML-Parser-2.40/t/ext.ent
XML-Parser-2.40/t/ext2.ent
XML-Parser-2.40/t/external_ent.t
XML-Parser-2.40/t/file.t
XML-Parser-2.40/t/finish.t
XML-Parser-2.40/t/foo.dtd
XML-Parser-2.40/t/namespaces.t
XML-Parser-2.40/t/parament.t
XML-Parser-2.40/t/partial.t
XML-Parser-2.40/t/skip.t
XML-Parser-2.40/t/stream.t
XML-Parser-2.40/t/styles.t
CPAN: File::Temp loaded ok (v0.22)
CPAN.pm: Going to build C/CH/CHORNY/XML-Parser-2.40.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/koi8-r.enc blib/lib/XML/Parser/Encodings/koi8-r.enc
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Encodings/ibm866.enc blib/lib/XML/Parser/Encodings/ibm866.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Encodings/windows-1255.enc blib/lib/XML/Parser/Encodings/windows-1255.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
cp Parser/Encodings/windows-1251.enc blib/lib/XML/Parser/Encodings/windows-1251.enc
cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
make[1]: Entering directory `/root/.cpan/build/XML-Parser-2.40-tJglwK/Expat'
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
make[1]: *** No rule to make target `ExtUtils/xsubpp', needed by `Expat.c'. Stop.
make[1]: Leaving directory `/root/.cpan/build/XML-Parser-2.40-tJglwK/Expat'
make: *** [subdirs] Error 2
CHORNY/XML-Parser-2.40.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
CHORNY/XML-Parser-2.40.tar.gz : make NO
Пропавшая цель, xsubpp
, является частью ядра Perl для современных Perl, и в процессе установки должно быть понятно, где он находится. Какая версия perl у вас установлена? Что произойдет, если вы попытаетесь установить XML :: Parser вручную (например, загрузите архив, запустите perl Makefile.PL && make
)? Похоже, что perl Makefile.PL
шаг не может найти xsubpp
. Вы можете установить более новую версию ExtUtils::MakeMaker
.