Sorry, I forgot to give you the details
The input command is:
sudo docker run -it alpine:3.14 sh
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
apk add --no-cache expat-dev make gcc g++ perl-dev
echo -e "yes" | perl -MCPAN -e 'notest install XML::Parser'
Output results is:
TODDR/XML-Parser-2.46.tar.gz
Has already been unwrapped into directory /root/.cpan/build/XML-Parser-2.46-0
TODDR/XML-Parser-2.46.tar.gz
Has already been prepared
Running make for T/TO/TODDR/XML-Parser-2.46.tar.gz
Warning: Prerequisite 'LWP::UserAgent => 0' for 'TODDR/XML-Parser-2.46.tar.gz' failed when processing 'OALDERS/libwww-perl-6.55.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
make: /bin/sh: Operation not permitted
make: *** [Makefile:428: blib/lib/XML/.exists] Error 127
TODDR/XML-Parser-2.46.tar.gz
Output results in alpine:3.13 is:
Appending installation info to /usr/lib/perl5/core_perl/perllocal.pod
TODDR/XML-Parser-2.46.tar.gz
/usr/bin/make install -- OK
Thank you
jiaquanye@geiri.sgcc.com.cn