2019.04.02
CPANで、XML::Perserをインストールしようとしたところ、一瞬、インストールが成功したように見えましたが、よくよく見るとエラーになっていました。
1 | cpan > install XML::Parser |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | Reading '/root/.cpan/Metadata' Database was generated on Mon, 25 Mar 2019 03:41:03 GMT Running install for module 'XML::Parser' Checksum for /root/.cpan/sources/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz ok Scanning cache /root/.cpan/build for sizes ........................................................................----DONE Configuring T/TO/TODDR/XML-Parser-2.44.tar.gz with Makefile.PL Expat must be installed prior to building XML::Parser and I can't find it in the standard library directories. Install 'expat-devel' (or 'libexpat1-dev') package with your OS package manager. See 'README'. Or you can download expat from: http://sourceforge.net/projects/expat/ If expat is installed, but in a non-standard directory, then use the following options to Makefile.PL: EXPATLIBPATH=... To set the directory in which to find libexpat EXPATINCPATH=... To set the directory in which to find expat.h For example: perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include Note that if you build against a shareable library in a non-standard location you may (on some platforms) also have to set your LD_LIBRARY_PATH environment variable at run time for perl to find the library. Checking if your kit is complete... Looks good Writing MYMETA.yml and MYMETA.json Generating a Unix-style Makefile Writing Makefile for XML::Parser Writing MYMETA.yml and MYMETA.json TODDR/XML-Parser-2.44.tar.gz /usr/bin/perl5.8.8/bin/perl Makefile.PL -- OK |
メッセージをよくみると、expat-develが無いと出てます。
以下のコマンドで該当するライブラリをインストール後、XML::Perserが正常にインストールできました。
1 | yum install expat-devel |