[librecat-dev] Error installing Catmandu::MARC (in Docker)

Uldis Bojars captsolo at gmail.com
Tue Jun 30 16:24:41 CEST 2020


Hi all,

I am getting an error when trying to install Catmandu::MARC in the official
librecat/catmandu Docker image [1]:

# cpanm Catmandu::MARC
[...]
--> Working on XML::Parser
Fetching http://www.cpan.org/authors/id/T/TO/TODDR/XML-Parser-2.46.tar.gz
... OK
Configuring XML-Parser-2.46 ... N/A
! Configure failed for XML-Parser-2.46. See
/root/.cpanm/work/1593525785.6/build.log for details.
! Installing the dependencies failed: Module 'XML::Parser' is not installed
! Bailing out the installation for XML-XPath-1.44.

Here's the relevant fragment from the build.log:
-----
Configuring XML-Parser-2.46
Running 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.

-> N/A
-> FAIL Configure failed for XML-Parser-2.46. See
/root/.cpanm/work/1593525785.6/build.log for details.
-> FAIL Installing the dependencies failed: Module 'XML::Parser' is not
installed
-> FAIL Bailing out the installation for XML-XPath-1.44.
-----

Could you help me resolve this issue?

[1] https://hub.docker.com/r/librecat/catmandu/

Best regards,
Uldis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20200630/526e13f6/attachment.html>


More information about the librecat-dev mailing list