libwww-perl / HTML-Parser

The HTML-Parser distribution is is a collection of modules that parse and extract information from HTML documents.
Other
6 stars 13 forks source link

Installing Alpine 3.16.1 and Perl 5.34.1 fails on EXTERN.h #29

Closed Zilvermeeuw closed 2 years ago

Zilvermeeuw commented 2 years ago

I try to install with cpanm HTML::Parser. I get the error in the logfile:

cc -c   -D_REENTRANT -D_GNU_SOURCE -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fomit-frame-pointer   -DVERSION=\"3.78\" -DXS_VERSION=\"3.78\" -fPIC "-I/usr/lib/perl5/core_perl/CORE"  -DMARKED_SECTION Parser.c
Parser.xs:17:10: fatal error: EXTERN.h: No such file or directory
   17 | #include "EXTERN.h"
      |          ^~~~~~~~~~
compilation terminated.

Do you know how to solve this?

Zilvermeeuw commented 2 years ago

After running apk add perl-html-parser. HTML::Parser is installed.