I've just installed Strawberry Perl on a new computer, and installed XML::LibXML through cpan (I think it was already installed). When I try to run a script calling LibXML, I get the following error message:
Can't load 'C:\Strawberry\perl\vendor\lib/auto/XML/LibXML/LibXML.xs.dll' for module XML::LibXML: load_file:The specified path is invalid at C:/strawberry/perl/lib/DynaLoader.pm line 193. at C:\Strawberry\perl\vendor\lib/XML/LibXML.pm line 156. BEGIN failed--compilation aborted at C:\Strawberry\perl\vendor\lib/XML/LibXML.pm line 156.
This is similar to this Stack Overflow question, but the error is slightly different, and I've tried all the advice given in that post but still get the message.
- LibXML.xs.dll is in the path given above
- C:\strawberry\c\bin is in the path
- I've created the perl5lib system variable, and set it to C:\Strawberry\perl\vendor\lib (C:\Strawberry\perl\site\lib was empty)
- libxml2-2___.dll is in c:\strawberry\c\bin
Any other suggestions?