希望摆脱XML :: Simple,我尝试安装XML :: LibXML。 我下载了XML-LibXML-1.40.tar.gz,解压缩并解压缩,以便在README中找到以下内容。
**安装之前,您必须安装了libxml2库。然后运行:1 perl Makefile.PL
2进行测试
3 su
4 make install **
第1步运行良好:输出如下,
perl Makefile.PL
enable native perl UTF8
running xml2-config... ok
looking for -lxml2... yes
If you are building XML::LibXML from CVS, you may wish to run
$ make docs
before doing anything else. This will re-build the documentation
from the XML file in examples/libxml.xml. This is *not* necessary
if you are building from a CPAN distribution.
Generating a Unix-style Makefile
Writing Makefile for XML::LibXML
Writing MYMETA.yml and MYMETA.json
第二步抛出了许多关于输出不兼容的警告,并且如下所示失败。
"perl-libxml-mm.c", line 112: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"perl-libxml-mm.c", line 228: a cast does not yield an lvalue
cc: acomp failed for perl-libxml-mm.c
*** Error code 2
**make: Fatal error: Command failed for target `perl-libxml-mm.o'**
有人可以帮助我理解这个吗?