XML::LibXML模块如何正确安装?

XML::LibXML模块如何正确安装?

$ perl Makefile.PL
enable native perl UTF8
running xml2-config...ok (2.6.16)
looking for -lxml2... yes
Checking if your kit is complete...
Looks good
Warning: prerequisite XML::LibXML::Common 0.13 not found.
Note (probably harmless): No library found for -lxml2
Writing Makefile for XML::LibXML

先安装XML::LibXML::Common也不行

$ perl Makefile.PL
enable native perl UTF8
running xml2-config... ok
looking for -lxml2... yes
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lxml2
Writing Makefile for XML::LibXML::Common

找不到lxml2...  小弟刚接触Perl解析XML的东东,哪位大哥帮忙指点下
那你安装了 libxml2 没有?  如没有请到http://xmlsoft.org下载

安装好了, 试以下形式

perl ./Makefile.PL LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm' INC='-I/usr/local/include -I/usr/include’

以上的路径, 是根据libxml2的安装路径所给予的.