Hello all,

I have to use a XML parser for creating, parsing, validating xml documents. For this i found out that XML::LibXML could be used. I downloaded the latest from CPAN. But i was not able to get this intalled and working.

First I have to install and use this XML module with Rational PERL(CQPERL, RATLPERL) which comes with installation of Clearquest. Hence i cannot use PPM to install the modules. So I have to copy paste the same.

I created a folder called XML under C:\Program Files\Rational\Common\lib\perl5\5.6.1
Then i placed the following files under the XML folder
LibXML.pm LibXML.pod NamespaceSupport.pm SAX.pm
Where Namespacesupport and SAX are the prerequisites for installing LibXML.

I also downloaded the SAX and Namespacesupport from CPAN and placed under the XML folder

The LibXML folder under XML (C:\Program Files\Rational\Common\lib\perl5\5.6.1\XML\LibXML) contains all the files from the .tar file.

Also I copied the XML::Common module under the XML\LiBXML folder
. Then i copied the common.dll along with the other files: common.pm, common.exp, common.bs, common.lib under C:\Program Files\Rational\Common\lib\perl5\5.6.1\auto\XML\LibXML\Common

i also downlaoded the Libxml2.dll and placed it under C:\Program Files\Rational\Common\lib\perl5\5.6.1\auto\XML\LibXML\Common

Now when i try to create a small perl application

#!/usr/bin/perl use XML::LibXML; my $parser = XML::LibXML->new();

and try to run via CQPERL (cqperl file.pl)
i get an application error with the following message:
AppName: cqperl.exe AppVer: 5.6.1.629 ModName: common.dll ModVer: 0.0.0.0 Offset: 0000173d
and with this CQPERL crashes.

This CQPERL is of PERL version 5.6.1.629

What am i doing wrong here?

Is there any other easy way of installing this LIBXML Parsers?



IT would be very helpful if someone assist me in installing this.

Thanks a ton in advance
Best Regards
Karthik

P.S. More info about CQPERL
Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultip +licity=def ine useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -Z7 -DWIN32 -D_CONSOLE + -DNO_STRI CT -DHAVE_DES_FCRYPT -DNEED_ENVIRON_DUP_FOR_MODIFY -DPERL_IMPLICIT_CO +NTEXT -DPE RL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX', optimize='-O1 -MD -DNDEBUG -Z7', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize =4 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -release -debug -debugt +ype:cv -l ibpath:"\public\ratlperl\5.6.1_AS629\lib\5.6.1\MSWin32-x86-multi-threa +d\CORE" - machine:x86' libpth=\sys_nt\MSVC\nt_i386\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib + comdlg32 .lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uui +d.lib wsoc k32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt. +lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool +.lib comd lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib + uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msv +crt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=ratlperl56.lib Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -de +bug -debug type:cv -libpath:"\public\ratlperl\5.6.1_AS629\lib\5.6.1\MSWin32-x86- +multi-thre ad\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEX +T PERL_IMP LICIT_SYS Locally applied patches: ActivePerl Build 629 Built under MSWin32 Compiled at Mar 26 2003 18:19:43 @INC: C:/Program Files/Rational/Common/lib/perl5/5.6.1/MSWin32-x86-multi +-thread C:/Program Files/Rational/Common/lib/perl5/5.6.1 C:/Program Files/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/perl5/site_perl/5.6.1 C:/Program Files/Rational/Common/lib/perl5/site_perl C:/Program 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 Files/Rational/Common/lib/perl5/site_perl .

In reply to Help required installing LibXML Parser by KarthikK

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.