ashwani has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
now that I installed XML::LibXML with libxml2 successfully on Windows
My problem is, that when I want to execute a Perl-Script
I get this error:
Can't load 'C:/Perl/site/lib/auto/XML/LibXML/Common/Common.dll' for mo +dule XML::LibXML::Common: load_file: The specified module could not b +e found at C:/Perl/lib/DynaLoader.pm line 230. at C:/Perl/site/lib/XML/LibXML.pm line 11 Compilation failed in require at C:/Perl/site/lib/XML/LibXML.pm line 1 +1. BEGIN failed--compilation aborted at C:/Perl/site/lib/XML/LibXML.pm li +ne 11.
even though I installed XML::LibXML::Common (automatically with XML::LibXML).
I don't understand, why he isn't able to load the file, even if that file (Common.dll) exists exactly in the given path
and the module is installed...!?
any help appreciated
Ashwani

Replies are listed 'Best First'.
Re: Module loading error
by Corion (Patriarch) on Aug 01, 2006 at 07:06 UTC

    As I already told you in the CB:

    ashwani: Download all files from here, and extract them into the directory where your perl.exe is.

    Have you done that?

    The most likely cause for this is that Common.dll depends on libxml2 being properly installed, which I guess is not the case on your system.

Re: Module loading error
by planetscape (Chancellor) on Aug 01, 2006 at 09:57 UTC
    even though I installed XML::LibXML::Common (automatically with XML::LibXML)

    I must admit, I am skeptical of this. When I installed XML::LibXML, I was forced to install XML::LibXML::Common first, and as a separate step. Modules whose names are of the form a::b::c are not necessarily installed by default simply by installing a::b.

    For more information, please see this thread: Can't install XML::LibXML

    HTH,

    planetscape
      hi thank
      i have resolved it even others can see some more link to resolve this error
      http://www.issociate.de/board/post/264721/Trouble_to_load_the_XML::LibXML::Common_module.html
      http://perl-xml.sourceforge.net/faq/#win32_expat
      Ashwani