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

Hi,

Sorry to disrupt prayers and tending the gardens but I have a Perly problem I've never had before and am currently stumped.

All I'm trying to do is install XML::XPath but it won't.

I usually just pop on ppm and everything installs just fine, this is the first (of very many) modules I've ever had a problem with.

I don't have Make or anything so I need the binaries.

I'm running ActiveState Perl 5.6.1 build 631 on NT.

PPM says...

C:\downloads>ppm install XML-XPath.ppd
Installing package 'XML-XPath.ppd'...
Error installing package 'XML-XPath.ppd': Read a PPD for 'XML-XPath.ppd', but it is not intended for this build of Perl (MSWin32-x86-multi-thread)

Other Perly XML modules have installed and work fine.

Any ideas brothers and sisters?

Thanks,
PerliKnight

2003-05-01 edit ybiC: <tt> tags flanking PPM error message, for legibility

Replies are listed 'Best First'.
Re: XML::XPath installation problemette
by BrowserUk (Patriarch) on May 01, 2003 at 10:24 UTC

    A quick look into the zip at XML-XPath shows that it only contains the code for SUN-Solaris builds of AS unfortunately. If you have subscribed to a support contract with AS, you can request that they make it available, and they may do so. Otherwise, I think your into the situation of having to A) search the web to see if anyone else has a Win32 binary version available or B) Prevailing upon someone else with the wherewithall to build a copy for you.

    Update It would seem that assuming you have installed XML::Parser, that XMP::XPath doesn't have any other binary components, so you ought to be able to install it successfully using the CPAN module.

    Failing that, with a little care, it is totally feasable to install it successfully manually directly from search.cpan.org. I know, I just did it! There are 21 files and 2 directories required to do it, but it took me less than 10 minutes saving each file directly from my browser. I don't claim that I have a fully tested install, but I did run install and run the stress.t test successfully.


    Examine what is said, not who speaks.
    1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
    2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
    3) Any sufficiently advanced technology is indistinguishable from magic.
    Arthur C. Clarke.
Re: XML::XPath installation problemette
by PodMaster (Abbot) on May 01, 2003 at 11:26 UTC
    *sigh*
    C:\>ppm3 PPM - Programmer's Package Manager version 3.0.1. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Profile tracking is not enabled. If you save and restore profiles manu +ally, your profile may be out of sync with your computer. See 'help profile' + for more information. Type 'help' to get started. ppm> rep desc 1 Describing Active Repository 1: Name: theory Location: http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServe +r Type: PPMServer 2.0 ppm> s XML-XPath Searching in Active Repositories 1. XML-XPath [1.12] a set of modules for parsing and evaluating XPat +h statements ppm> d --dump 1 ==================== Package 1: <SOFTPKG NAME="XML-XPath" VERSION="1,12,0,0"> <TITLE>XML-XPath</TITLE> <ABSTRACT>a set of modules for parsing and evaluating XPath st +atements</ABSTRACT> <AUTHOR>Matt Sergeant, AxKit.com Ltd</AUTHOR> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread" /> <CODEBASE HREF="http://theoryx5.uwinnipeg.ca/ppmpackag +es/x86/XML-XPath.tar.gz" /> <DEPENDENCY NAME="XML-Parser" VERSION="2,23,0,0" /> </IMPLEMENTATION> </SOFTPKG> ====================
    ppm a


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: XML::XPath installation problemette
by JamesNC (Chaplain) on May 01, 2003 at 11:29 UTC
    I got it to install just fine on Win32 AS 5.8.0, you just need to use PPM3 instead of ppm. It found the module fine and installed it.

    I have one additional Repository from the standard AS build, you would add it to yours as such

    ppm> rep add Theory http://theoryx5.uwinnipeg.ca/ppms

    Cheers, JamesNC
    Update2:Fixed poor formatting, the just of it was that FYI, it does install and work under 5.8 and the above is the place to find it.
      Thanks guys, looks like I need Perl 5.8 then so I'll maybe see if there are other ways round this or another module.

      Cheers,
      PerliKnight

        You were offered 2 other ways around the problem above. PodMaster showed you where and how to obtain a binary install for AS 5.6.1, and I explained in my update that there is no reason not to install the version from XML::XPath as the module itself in a pure perl module and doesn't need compiling, though if you don't have nmake, you might have to unpack and install the files manually. Obviously PodMaster's solution is easier.


        Examine what is said, not who speaks.
        1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
        2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
        3) Any sufficiently advanced technology is indistinguishable from magic.
        Arthur C. Clarke.