Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Help required installing LibXML Parser

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


in reply to Help required installing LibXML Parser

One thing you might try is to install the CPAN version of PPM on your machine; to do this, download the PPM-2.1.8.tar.gz source, extract the files, change into the unpacked directory, and run
perl Makefile.PL nmake nmake install
For this, you'll need to install nmake for Windows. After this, you can install XML-LibXML from the uwinnipeg 5.6 repository by issuing the command
ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/XML-LibXML.ppd
This should also install the prerequisite ppm packages, as well as the required libxml2.dll library (which goes somewhere in your PATH).

Replies are listed 'Best First'.
Re^2: Help required installing LibXML Parser
by KarthikK (Sexton) on Dec 19, 2007 at 17:14 UTC
    OK..now i copied all the required modules like Compress, Archive, XML::Parser from Activestate perl installation.
    Now i ran the following
    U:\.cpan\PPM-2.1.8>cqperl makefile.pl Checking if your kit is complete... Looks good
    after his the perl parer crashes with the followging error
    AppName: cqperl.exe AppVer: 5.6.1.629 ModName: zlib.dll ModVer: 0.0.0.0 Offset: 000068ec

      Did you copy the files from an ActivePerl 6xx build? This is what you should be using, as it's based on perl-5.6. And did you copy all the pm and dll files in the manner described in my earlier reply?

      This should work assuming the Perl that ships with Rational ClearQuest is compiled with VC++ 6, which is what ActivePerl is compiled with.

Re^2: Help required installing LibXML Parser
by KarthikK (Sexton) on Dec 19, 2007 at 16:56 UTC
    Thanks radny.

    When i tried to do makefile i got the following
    U:\.cpan\PPM-2.1.8>cqperl makefile.pl Checking if your kit is complete... Looks good Warning: prerequisite Archive::Tar failed to load: Can't locate Archiv +e/Tar.pm i n @INC (@INC contains: 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:/P +rogram Fil es/Rational/Common/lib/perl5 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 C:/Pr +ogram File s/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/Ratio +nal/Common /lib/perl5/site_perl .) at (eval 4) line 3. Warning: prerequisite Compress::Zlib failed to load: Can't locate Comp +ress/Zlib. pm in @INC (@INC contains: C:/Program Files/Rational/Common/lib/perl5/ +5.6.1/MSWi n32-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-thre +ad C:/Prog ram Files/Rational/Common/lib/perl5/site_perl/5.6.1 C:/Program Files/R +ational/Co mmon/lib/perl5/site_perl .) at (eval 5) line 3. Warning: prerequisite XML::Parser failed to load: Can't locate XML/Par +ser.pm in @INC (@INC contains: C:/Program Files/Rational/Common/lib/perl5/5.6.1/ +MSWin32-x8 6-multi-thread C:/Program Files/Rational/Common/lib/perl5/5.6.1 C:/Pro +gram 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/pe +rl5/site_p erl/5.6.1 C:/Program Files/Rational/Common/lib/perl5/site_perl C:/Prog +ram Files/ Rational/Common/lib/perl5/site_perl/5.6.1/MSWin32-x86-multi-thread C:/ +Program Fi les/Rational/Common/lib/perl5/site_perl/5.6.1 C:/Program Files/Rationa +l/Common/l ib/perl5/site_perl .) at (eval 6) line 3. Error: Unable to locate installed Perl libraries or Perl source code. It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distribution. It usually solves this kind of problem. (You get this message, because MakeMaker could not find "\public\ratlp +erl\5.6.1_ AS629\lib\perl5\5.6.1\MSWin32-x86-multi-thread\CORE\perl.h")

    i used cqperl makefile.pl since i have to install it for Rational PERL
    Thanks alot

    best regards
    Karthik

      The error message at the end:

      Error: Unable to locate installed Perl libraries or Perl source code. It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distribution. It usually solves this kind of problem. (You get this message, because MakeMaker could not find "\public\ratlp +erl\5.6.1_ AS629\lib\perl5\5.6.1\MSWin32-x86-multi-thread\CORE\perl.h")
      looks to be most serious - it means you can't build extensions in the standard way because of some missing header files. IBM recommends that you install missing modules manually, which is possible, but as was mentioned in earlier responses, you have to take care where to put the files. In the following, let $RATIONAL stand for C:\Program Files\Rational\Common\lib\perl5\site_perl\5.6.1.

      What you could do is grab the sources of the binary ppm packages, extract the files, and then copy them into locations that your Perl expects them. For example, for XML-LibXML-Common, which is a prerequisite, download XML-LibXML-Common.tar.gz from http://theoryx5.uwinnipeg.ca/ppmpackages/x86/. When unpacked, the directory structure contains

      blib/lib/XML/LibXML/.exists blib/lib/XML/LibXML/Common.pm blib/lib/XML/LibXML blib/arch/auto/XML/LibXML/Common/.exists blib/arch/auto/XML/LibXML/Common/Common.bs blib/arch/auto/XML/LibXML/Common/Common.dll blib/arch/auto/XML/LibXML/Common/Common.exp blib/arch/auto/XML/LibXML/Common/Common.lib blib/arch/auto/XML/LibXML/Common/Common.pdb
      Copy the files under blib/lib/ to $RATIONAL, taking care to preserve the subdirectory structure (for example, blib/lib/XML/LibXML/Common.pm would go to $RATIONAL\XML\LibXML\Common.pm). Then copy the files under blib/arch/auto/ to $RATIONAL\MSWin32-x86-multi-thread\auto\, again taking care to preserve the underlying subdirectory structure. Finally, you'll need the libxml2.dll external library; this can be obtained from http://theoryx5.uwinnipeg.ca/ppmpackages/scripts/, and should be placed somewhere under your PATH environment variable (type set PATH at a command prompt to see what your PATH is). You'll then have to repeat this for XML-LibXML, XML-NamespaceSupport, and XML-SAX.
        Hello Randy,
        Your explantion was simply great! i did exactly the same and CQPERL parser does not crash! also i had put the libxml2.dll into my "C:\Program Files\Rational\Common" folder.

        I did set path on cmd and i got the following:
        Path=C:\Program Files\ActiveState Perl Dev Kit 7.0\bin;C:\Perl\bin;C:\ +Program Files\ActiveState Komodo IDE 4.2\;C:\WINNT\system32;C:\WINNT; +C:\WINNT\System32\Wbem;C:\Program Files\Rational\common;C:\Program Fi +les\Rational\ClearCase\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
        Hence i had placd the libxml2.dll in "C:\Program Files\Rational\Common"

        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 at libxml_test.pl line 6. BEGIN failed--compilation aborted at libxml_test.pl line 6.
        I am not sure if the libxml2.dll could be the problem?

        Thanks once again a lot

        best regards
        Karthik

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found