在apline使用apk安装perl组件 XML::Parser出现如下问题,导致无法make成功
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'.
解决方法: apk add --no-cache expat-dev
如果出现 Expat.xs:14:10: fatal error: EXTERN.h: No such file or directory ,如图所示:
解决方法:
apk add --no-cache perl-dev