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

Right now I'm using perl on a Win32 machine.

I want to start using the XML::RSS module, but it seems like I never have the right modules installed. For instance I have to install the DateTime module which in itself requires three more modules that I don't have. It seems like I am running around in a circle that never goes anywhere.

Is there an easier way to download a module and all its required modules than by downloading each module individually? Is there a way to get all the modules in a bundle?
  • Comment on Pulling my hair out - Is there any easier way to download modules?

Replies are listed 'Best First'.
Re: Pulling my hair out - Is there any easier way to download modules?
by GrandFather (Saint) on Dec 22, 2006 at 05:04 UTC
Re: Pulling my hair out - Is there any easier way to download modules?
by syphilis (Archbishop) on Dec 22, 2006 at 05:34 UTC
    You could install XML-RSS using PPM - and that should automatically install the dependencies as well. There's a ppm package for XML-RSS-1.10 at http://theoryx5.uwinnipeg.ca/ppms/.

    Otherwise, as already suggested, you can utilise CPAN.pm ... or you can just grin and bear it (which is the option I generally choose).

    Cheers,
    Rob
      Thanks for the help.

      I tried using PPM to download XML-RSS. I get the error "could not find ParserDetails.ini".

        That most likely is a warning, not an error. Try running the following at a command prompt (all on one line):

        C:\>perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
        which should create a file ParserDetails.ini beneath C:\Perl\site\lib\XML\SAX\. After this the warning should disappear.

        If you're using our uwinnipeg repository to install XML-RSS (which, by the way, I just upgraded to version 1.22), you should ensure this appears in the list of repositories within your ppm utility, in order that the prerequisites get installed. Assuming you're using the ppm gui of ActivePerl 819, this can be done through the Edit -> Preferences -> Repositories menu; an appropriate location is http://theoryx5.uwinnipeg.ca/ppms/. This can also be done via the command

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

        I get the error "could not find ParserDetails.ini"

        It works fine for me - looks like you have a botched PPM installation.
        Sorry, I don't know what the problem with your PPM is. There's a PPM mailing list (subscribe at http://listserv.activestate.com/mailman/mysubs) if you can't get satisfactory help with the problem here (or elsewhere).

        Cheers,
        Rob
        Ok. I got rid of the error "cannot find ParserDetails.ini". I did this by uninstalling XML::SAX and reinstalling it again.

        Anyone that needs help should check out this page.

        http://perl-xml.sourceforge.net/faq/#parserdetails.ini
Re: Pulling my hair out - Is there any easier way to download modules?
by artist (Parson) on Dec 22, 2006 at 05:00 UTC
    I use cpan to install modules. Just type 'cpan' at your C:\ prompt and once you get cpan prompt, type 'install XML::RSS'. Now watch the fun.
    --Artist