Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Help required installing LibXML Parser

by randyk (Parson)
on Dec 20, 2007 at 15:23 UTC ( [id://658130]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Help required installing LibXML Parser
in thread Help required installing LibXML Parser

One problem might be is that you have another libxml2.dll somewhere in your PATH which is a different version than the one XML::LibXML::Common was compiled with. Try searching within the directories of your PATH for another one, and if one is found, move it out of the way (temporarily, in case it's needed for some other application).
  • Comment on Re^5: Help required installing LibXML Parser

Replies are listed 'Best First'.
Re^6: Help required installing LibXML Parser
by KarthikK (Sexton) on Dec 20, 2007 at 16:43 UTC
    No where libxml2.dll is insalled. even i deleted the dll but still i get the same error
    Regards
    Karthik
      If you put the libxml2.dll in C:\WINNT\system32, and then run
      C:\> perl -MXML::LibXML::Common -e "print 1"
      does that produce an error? If so, is it the same error as before?
        I tried and got the following
        U:\>cqperl -MXML::LibXML::Common -e "print 1" Can't load 'C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1 +/MSWin32-x 86-multi-thread/auto/XML/LibXML/Common/Common.dll' for module XML::Lib +XML::Commo n: load_file:The specified module could not be found at C:/Program Fil +es/Rationa l/Common/lib/perl5/5.6.1/MSWin32-x86-multi-thread/DynaLoader.pm line 2 +06. at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted.
        I have been cheking your other forums and you had explained about copying this dll to C:\winnt\system32 folder. Doesnt work for me perhaps i am using a customized version of perl!
        thanks
        Karthik
Re^6: Help required installing LibXML Parser
by KarthikK (Sexton) on Dec 20, 2007 at 17:06 UTC
    I was analysing the Install_libxml2 from http://theoryx5.uwinnipeg.ca/ppmpackages/scripts/install_libxml2 and i tried to copied and few code and ran the script via CQPERL and it said BIN path for CQPERL is
    \public\ratlperl\5.6.1_AS629\bin
    which is no where present. I assume this is the directory struture of the CQPERL Build.
      That is a strange result - it suggests that some of the configuration information in your Perl installation has some values probably set from the machine where it was built, and hence don't necessarily match your system. That may be contributing to the problem. What happens when you run:
      C:\> set PERL_DL_DEBUG=1 C:\> perl -MXML::LibXML -e "print 1"
      Also, what happens if you place libxml2.dll in the same subdirectory as Common.dll, which is used by XML::LibXML::Common?
        tried and got this
        DynaLoader.pm loaded (C:/Program Files/Rational/Common/lib/perl5/5.6.1 +/MSWin32-x 86-multi-thread C:/Program Files/Rational/Common/lib/perl5/5.6.1 C:/Pr +ogram File s/Rational/Common/lib/perl5 C:/Program Files/Rational/Common/lib/perl5 +/site_perl /5.6.1/MSWin32-x86-multi-thread C:/Program Files/Rational/Common/lib/p +erl5/site_ perl/5.6.1 C:/Program Files/Rational/Common/lib/perl5/site_perl C:/Pro +gram Files /Rational/Common/lib/perl5/site_perl/5.6.1/MSWin32-x86-multi-thread C: +/Program F iles/Rational/Common/lib/perl5/site_perl/5.6.1 C:/Program Files/Ration +al/Common/ lib/perl5/site_perl ., \sys_nt\MSVC\nt_i386\lib) DynaLoader::bootstrap for XML::LibXML::Common (auto/XML/LibXML/Common/ +Common.dll ) Can't load 'C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1 +/MSWin32-x 86-multi-thread/auto/XML/LibXML/Common/Common.dll' for module XML::Lib +XML::Commo n: load_file:The specified module could not be found at C:/Program Fil +es/Rationa l/Common/lib/perl5/5.6.1/MSWin32-x86-multi-thread/DynaLoader.pm line 2 +06. at C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1/XML/Lib +XML.pm lin e 12 Compilation failed in require at C:/Program Files/Rational/Common/lib/ +perl5/site _perl/5.6.1/XML/LibXML.pm line 12. BEGIN failed--compilation aborted at C:/Program Files/Rational/Common/ +lib/perl5/ site_perl/5.6.1/XML/LibXML.pm line 12. Compilation failed in require. BEGIN failed--compilation aborted.
        the common.dll is present in C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1/MSWin32-x86-multi-thread/auto/XML/LibXML/Common/ folder

        Also i tried placing the libxml2.dll in the same folder as common, but still i get the same error!
        Just for the record, below are the list of files i have
        C:\Program Files\Rational\Common\lib\perl5\site_perl\5.6.1\MSWin32-x86 +-multi-thread\auto\XML „₯„Ÿ„Ÿ„ŸLibXML „  „  LibXML.bs „  „  LibXML.dll „  „  LibXML.exp „  „  LibXML.lib „  „  LibXML.pdb „  „  „  „€„Ÿ„Ÿ„ŸCommon „  Common.bs „  Common.dll „  Common.exp „  Common.lib „  Common.pdb „  „₯„Ÿ„Ÿ„ŸNamespaceSupport „€„Ÿ„Ÿ„ŸSAX
        C:\Program Files\Rational\Common\lib\perl5\site_perl\5.6.1\XML „  LibXML.pm „  LibXML.pod „  NamespaceSupport.pm „  SAX.pm „  „₯„Ÿ„Ÿ„ŸLibXML „  Attr.pod „  Boolean.pm „  CDATASection.pod „  Comment.pod „  Common.pm „  Document.pod „  DocumentFragment.pod „  DOM.pod „  Dtd.pod „  Element.pod „  InputCallback.pod „  Literal.pm „  Namespace.pod „  Node.pod „  NodeList.pm „  Number.pm „  Parser.pod „  PI.pod „  Reader.pm „  Reader.pod „  RelaxNG.pod „  SAX.pm „  SAX.pod „  Schema.pod „  Text.pod „  XPathContext.pm „  XPathContext.pod „  „€„Ÿ„Ÿ„ŸSAX „  Base.pm „  Builder.pm „  Builder.pod „  DocumentLocator.pm „  Exception.pm „  Generator.pm „  Intro.pod „  NoUnicodeExt.pm „  Parser.pm „  ParserFactory.pm „  placeholder.pl „  PurePerl.pm „  UnicodeExt.pm „  „€„Ÿ„Ÿ„ŸPurePerl „  DebugHandler.pm „  DocType.pm „  DTDDecls.pm „  EncodingDetect.pm „  NoUnicodeExt.pm „  Productions.pm „  Reader.pm „  UnicodeExt.pm „  XMLDecl.pm „  „€„Ÿ„Ÿ„ŸReader Stream.pm String.pm URI.pm

        And libxml2.dll is placed in
        C:\Program Files\Rational\Common\libxml2.dll
        i hope this could throw some light!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://658130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found