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

Fellow Monks

I've installed XML::LibXSLT on my WinXP:
ppm> search XML::LibXSLT Searching in Active Repositories 1. XML-LibXSLT [1.58] Interface to Gnome libxslt library ppm> install 1 Package 1: ==================== Install 'XML-LibXSLT' version 1.58 in ActivePerl 5.8.3.809. ==================== ...etc
When i run a test program :
use strict; use XML::LibXSLT; my $XML_FILENAME = 'C:\Documents and Settings\z6and\Desktop\PerlXML\sk +emaer\WX.xml'; my $XSL_FILENAME = 'C:\Documents and Settings\z6and\Desktop\PerlXML\sk +emaer\WX.xsl'; my $xslt = XML::LibXSLT->New; my $stylesheet = $xslt->parse_stylesheet_file($XSL_FILENAME); my $results = $stylesheet->transform_file($XML_FILENAME); print $stylesheet->output_string($results);
i get the error.
Can't locate auto/XML/LibXSLT/New.al in @INC (@INC contains: C:\Progra +m Files\ActiveState Perl Dev Kit 6.0\lib\ C:/Perl/lib C:/Perl/site/li +b .) at C:\Documents and Settings\z6and\Desktop\CSC\PERL\PerlXML\XMLp +arse.pl line 35
After the install, the library C:\Perl\site\lib\auto\XML\LibXSLT contains only :
.packlist LibXSLT.bs LibXSLT.dll LibXSLT.exp LibXSLT.lib
but no autoload file ".../auto/XML/LibXSLT/New.al"

Checking with ActiveState i see that the module state for XML-LibXML 1.58 for Windows is "FAIL", so i wonder if the ppm i installed (from UWinnipeg PPM Repository) is in error? What are your experiences with installing LibXML on Windows ?

Best regards
allan

Replies are listed 'Best First'.
Re: XML::LibXSTL/Windows autoload problem
by jbrugger (Parson) on Oct 03, 2005 at 12:21 UTC
    might be
    my $parser = XML::LibXML->new(); my $xslt = XML::LibXSLT->new();

    (note the capitals in your example)

    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
      Hi jbrugger,
      Yes indeed, what the difference a Cap makes...!
      And not immediately obvious (to me) how that might end up in an aborted attempt to autoload New.

      Thanks for solving the problem!
      Best regards,
      Allan

      PS: well, on 2.thought, I think i do understand that perl (the interpreter) doesn't recognize New as a method of LibXSLT, and thus as a last resort tries to autoload it, which of course fails... Thus a failed autoload might in general be a good indication that you misspelled a method name...
        ... Thus a failed autoload might in general be a good indication that you misspelled a method name...
        You don't say ;) 'perldoc perldiag' :
        Can't locate auto/%s.al in @INC

        (F) A function (or method) was called in a package which allows autoload, but there is no function to autoload. Most probable causes are a misprint in a function/method name or a failure to AutoSplit the file, say, by doing make install.

        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.6.x and 5.8.x -- I take requests (README).
        ** The third rule of perl club is a statement of fact: pod is sexy.