Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^7: Help required installing LibXML Parser

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


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

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?

Replies are listed 'Best First'.
Re^8: Help required installing LibXML Parser
by KarthikK (Sexton) on Dec 21, 2007 at 09:12 UTC
    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!
Re^8: Help required installing LibXML Parser
by KarthikK (Sexton) on Dec 21, 2007 at 10:18 UTC
    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!
      I'm afraid I'm a bit stumped - everything above looks OK. Just to see if it might be a binary incompatibility problem with your version of Perl, could you try installing the GD module; the ppm sources GD.tar.gz are again at http://theoryx5.uwinnipeg.ca/ppmpackages/x86/. After installation, does
      C:\> perl -MGD -e "print 1"
      work?
        will do it on monday (@ work pc) and will update. Thanks a lot once again
        Nope got the following error
        U:\>cqperl -MGD -e "print 1" Extracting -e (with variable substitutions) Can't locate loadable object for module GD in @INC (@INC contains: C:/ +Program Fi les/Rational/Common/lib/perl5/5.6.1/MSWin32-x86-multi-thread C:/Progra +m Files/Ra tional/Common/lib/perl5/5.6.1 C:/Program Files/Rational/Common/lib/per +l5 C:/Prog ram Files/Rational/Common/lib/perl5/site_perl/5.6.1/MSWin32-x86-multi- +thread C:/ Program Files/Rational/Common/lib/perl5/site_perl/5.6.1 C:/Program Fil +es/Rationa l/Common/lib/perl5/site_perl C:/Program Files/Rational/Common/lib/perl +5/site_per l/5.6.1/MSWin32-x86-multi-thread C:/Program Files/Rational/Common/lib/ +perl5/site _perl/5.6.1 C:/Program Files/Rational/Common/lib/perl5/site_perl .) at + -e line 0 Compilation failed in require. BEGIN failed--compilation aborted.
        i just copied the files to the C:/Program Files/Rational/Common/lib/perl5/site _perl/5.6.1 folder

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-19 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found