Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^6: Help required installing LibXML Parser

by KarthikK (Sexton)
on Dec 20, 2007 at 17:06 UTC ( #658176=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^6: Help required installing LibXML Parser
Download Code
Re^7: Help required installing LibXML Parser
by randyk (Parson) on Dec 20, 2007 at 21:41 UTC
    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!
        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?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2014-09-18 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (115 votes), past polls