执行cpan -i XML::LibXML
如果能安装成功,就OK了。
如果遇到/bin/x86_64-conda_cos6-linux-gnu-gcc: not found
解决办法:
conda install gxx_linux-64
如果出现一下错误:
Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.
Try setting LIBS and INC values on the command line
故需要安装libxml2和zlib这两个库
执行sudo apt-get install libxml2-dev zlib1g-dev
然后重新执行cpan安装这个XML::LibXML模板。这样估计就没有什么问题了!