執(zhí)行cpan -i XML::LibXML
如果能安裝成功莉掂,就OK了权谁。
如果遇到/bin/x86_64-conda_cos6-linux-gnu-gcc: not found
解決辦法:
conda install gxx_linux-64
如果出現(xiàn)一下錯誤:
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這兩個庫
執(zhí)行sudo apt-get install libxml2-dev zlib1g-dev
然后重新執(zhí)行cpan安裝這個XML::LibXML模板绘面。這樣估計就沒有什么問題了弟孟!