Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Alias (5735)

  (email not shown publicly)

Journal of Alias (5735)

Tuesday January 15, 2008
10:27 PM

New, quicker, workaround for getting XML::Parser working

[ #35397 ]

The highest priority for Strawberry Perl is getting XML::Parser working (it will almost certainly come pre-installed in the next quarterly release due April 1st plus or minus a week).

In the mean time, we're trying to work out the problems that prevent it working, focusing on getting the XML::Parser Makefile.PL to recognize that the binary libs are installed.

In the mean time though, here is a MUCH simpler workaround for getting XML::Parser installed.

1. Download the "vanilla package" zip file for Expat.

2. Move the zip file to the C:/strawberry/c/ and extract it there.

3. Start the CPAN shell and run the following

> look XML::Parser

This will drop you into a subshell in the XML::Parser build directory.

4. Edit the Makefile.PL for XML::Parser and replace this...

die <<'Expat_Not_Installed;';

...with this...

warn <<'Expat_Not_Installed;';

5. Run "perl Makefile.PL; make; make test; make install" as normal for a CPAN module.

Since the only dependency XML::Parser has is on LWP (which should be already installed) this manual installation should succeed.

More thorough patches are now in RT for XML::Parser, and we hope to have a new XML::Parser out shortly which will auto-detect the vanilla form of expat correctly.

And so we can include support in Perl::Dist and it will be available bundled by default.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • ... that back in ye olde days, I built PAR packages for Strawberry of expat, XML::Parser, PDL, and all those yucky bastards? I don't remember where I put them, though.
    • That would indeed be interesting, since Strawberry has PAR::Dist in it already.
      • Damn. I just recently cleaned up old stuff as I was retiring the server I built it on.

        However, for non Perl-module-.par's, it wen basically as follows:

        - Build the lib using mingw, possibly sh.
        - Put the lib in a zip under a certain directory
        - Install it with a small PAR::Dist based script which set custom installation targets for that directory in the .par.

        I can probably still find a copy of the installation script somewhere. (This is all related to the old external-library-handling musing of mine on the win