问题
I answered a question on SO a while back where I initially suggested using XML::DOM. After mirod suggested that I use XML::LibXML instead, I implemented it. And to be honest, it works great on my system. I saw my runtime drop drastically with the new module without doing any additional optimizations.
Now the tricky part, for some reason the module doesn't even install on my colleagues system.
ppm install xml-libxml returns: Downloading ActiveState Package Repository packlist...not modified ppm install failed: Can't find any package that provide xml-libxml
The only difference I could find between the two machines was that I was using AS Perl v5.12.1 and he is on AS perl V5.8.8.
Is xml-libxml supported on AS Perl v5.8.8?
Also, I visited the Active State PPM index and that seems to indicate that its broken on 5.8 all the way through to 5.12.
Does anybody have any experience with this module? Should I roll back to XML::DOM - which with its slow performance and not being actively maintained, at least installed and worked?
Any pointers would be really appreciated.
回答1:
I found that I have to add a repository, like the uwinnipeg repo http://theoryx5.uwinnipeg.ca/ppms/, when I am trying to install XML-LibXML on windows. Might be your problem too.
回答2:
Use http://kobesearch.cpan.org/ to find repositories that have your desired ppms.
回答3:
Also see my post on a different thread regarding how I was able to install XML-LibXML with ActivePerl 5.8.8.
In short, you can find the appropriate package in the corresponding uwinnipeg repository. NOTE see http://theoryx5.uwinnipeg.ca/ppms/ for the correct repository version to use, and XML-LibXML-Common MUST be installed first. Also, make sure you have the prerequisite DLLs installed before installing XML-LibXML via PPM.
来源:https://stackoverflow.com/questions/5396126/is-xmllibxml-not-supported-on-perl-5-8-8