Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

XML::LibXML and XML::LibXSLT ppd

by nagesh (Novice)
on Feb 22, 2002 at 01:58 UTC ( [id://146857]=perlquestion: print w/replies, xml ) Need Help??

nagesh has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I want to install XML::LibXML and XML::LibXSLT on my windows 2000 machine.

1. I tried installing using the PPM for windows 2000, which comes with ActivePerl. But the ppd was for this library was not found, could any Monk help me in finding it on web.

2.Infact I tried perl Makefile.PL, it is looking for libxml2 but I don't know how to install it. I tried putting the Windows binaries found in www.libxml.org but not quite sure what to do with them :(.

If there is no ppd for XML::LibXML or XML::LibXSLT then what would be the installation commands on DOS in simple steps.

Thank you,

Nagesh

Replies are listed 'Best First'.
Re: XML::LibXML and XML::LibXSLT ppd
by ajt (Prior) on Feb 22, 2002 at 09:06 UTC
    If you configure the AS PPM tool to use the excellent University of Winnipeg PPM repository you should be able to install the binary via PPM directly. You should also find that there are a few other excellent modules there too.

    Basically in the PPM shell you type something like:

    set repository Theory http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?u +rn:/PPMServer set save

    Then install and search away as normal. It does work fine on NT by the way, and it's very fast!

    Hope this helps.

      Great!! this worked, thanx a lot.:)

      nagesh

Re: XML::LibXML and XML::LibXSLT ppd
by simon.proctor (Vicar) on Feb 22, 2002 at 09:07 UTC
    Hi, I have managed to sucessfully install these libraries on both NT4 and on win2k. You need to follow the installation for the win32 binaries for the actual libraries (those from libxml.org). Once you have those installed you can then install the perl modules. These modules are just layers over the binaries installed so thats why you need both.

    To install the Perl modules, I used nmake from Microsoft. Your activestate docs should show you how to use that. But in essence you can just substitute nmake for make in the old perl Makefile.PL, make, make install trinity.

    I hope that helps, if not send me a msg :)

    Simon
      Hi..

      I downloaded library from (http://www.xmlsoft.org/), but how to install these flat files on windows .

      I pass parameter to Makefile.pl like INC="pathto/inc/" and LIB="/pathto/lib/" but same error :

      looking for -llibxslt... no<br/> libxslt not found<br/> Try setting LIBS and INC values on the command line<br/> Or get libxslt and libxml2 from<br/> http://www.libxml.org/<br/> If you install via RPMs, make sure you also install the -devel<br/> RPMs, as this is where the headers (.h files) are.</b>

        "I downloaded library from (http://www.xmlsoft.org/), but how to install these flat files on windows . "

        Yet again you're determined to make life difficult for yourself. From the page you claim to have visited:

        "The precompiled Windows binaries made by Igor Zlatovic are available in the win32 directory."

        Read and understand what people tell you, and what websites actually say, especially when it's relevant to the platform specific notes for the tool you're trying to use. If you're either unwilling or unable to do so, consider paying someone to complete this task for you.

        You already have an open thread, why are you replying to a post from ten years ago?

        Well, LIBS is not LIB, it is LIBS

        Also, you asked simon.proctor who hasn't visited perlmonks in four years, new questions go in Seekers Of Perl Wisdom

Re: XML::LibXML and XML::LibXSLT ppd
by Zaxo (Archbishop) on Feb 22, 2002 at 02:34 UTC

    The source distributions of libxml2 and libxslt contain resources for compiling with mingwin and msvc. If you need binary distributions, one source is cygwin libxml2 and cygwin libxslt.

    After Compline,
    Zaxo

Re: XML::LibXML and XML::LibXSLT ppd
by Anonymous Monk on Feb 22, 2002 at 07:37 UTC
    Hmm, could the documentation have some directions for you, smart guy
    Perl module: XML::XSLT Copyright (c) 1999 Geert Josten & Egon Willighagen. Copyright (c) 2001 Mark A. Hershberger All rights reserved. This program is free software; you can redistribute it and/or modify i +t under the same terms as Perl itself. The Perl licence can be found in the README file in the Perl source distribution. Information can be found at: http://xmlxslt.sourceforge.net/ The module can be found at: http://www.cpan.org/modules/by-module/XML *** THIS IS ALPHA SOFTWARE *** Expect the interface to change between versions. This is a Perl module to parse XSL Transformational sheets. For a description of the XSLT, see http://www.w3.org/TR/xslt. Currently, it uses XML::Parser and XML::DOM, but an effort is being made to use XML::XPath. XML::Parser is a Perl extension interface to James Clark's XML parser, expat. It requires at least version 5.004 of perl and can be found on CPAN. XML::DOM is a Perl module that allows XML::Parser to build an Object Oriented data structure with a DOM Level 1 compliant interface. While we are working towards conformance with the W3 spec, this is an alpha version and the module does not conform to the XSLT working draft at this moment. New releases will be announced on the perl-xml mailing list [You can subscribe to this list by sending a message to subscribe-perl-xml@lyris.activestate.com] and to the XML::XSLT mailing list [subscribe by sending a message to xmlxslt-subscribe@listbot.com]. Please post bug reports to <https://sourceforge.net/bugs/?group_id=605 +4> To configure this module, cd to the directory that contains this README file and type the following. perl Makefile.PL Then to build you run make. make Run the tests: make test If you have write access to the perl library directories, you may then install by typing (as superuser): make install If you want to install this module somewhere other than the standard l +ocation then you should use: perl Makefile.PL PREFIX=/location/of/libs at the first stage above and then in a program that wants to use the m +odule you should put: use lib qw(/locations/of/libs/lib/perl5); early on in the program. DEPENDENCIES This module requires XML::DOM (and its dependency XML::Parser) and als +o requires Test::More to perform its tests.
    http://www.fh-frankfurt.de/~igor/projects/libxml/index.html

    |How to Read The Friendly Manual

      That's not the module being asked about, smart guy.

      See ajt's answer below.

      As Matts points out this is not the module that was being asked about - however XML::XSLT will build fine on Windows without the need for a C compiler: all you require is nmake

      /J\

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-19 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found