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

I've been trying to run a perl script called quickrep by patgas. However, in the script he uses

use HTTP::Cookies;
use LWP::UserAgent;
use XML::Simple;

I'm rather new to perl and I'm not sure why it work on his system and not on mine. He is using Activestate perl on Win2k while I'm using Red Hat Linux. When I try to run it, it gives me an error that says it cannot find HTTP/Cookies.pm in @INC
Any help will be greatly appreciated.
Thanks
touch

Replies are listed 'Best First'.
Re: use HTTP::Cookies?
by blakem (Monsignor) on Sep 14, 2001 at 11:50 UTC
    You'll need to install the HTTP::Cookies module on your machine. This is quite easy if you have root access, and only mildly more difficult if not. The following command will drop you into an interactive module installation shell:
    perl -MCPAN -e shell
    From there, you can follow the directions at My Favorite Module: CPAN and if you need more, try difficulty using CPAN.pm.

    -Blake

Re: use HTTP::Cookies?
by mirod (Canon) on Sep 14, 2001 at 12:17 UTC

    You will also have to install XML::Simple, which depends on XML::Parser. Before using CPAN.pm to install those you will have to install expat, the C library on top of which XML::Parser is built. You cannot do this with CPAN, you have to get and get it from sourceforge.

    Note that Perlmonks Related Scripts has a complete list of... Perlmonks related scripts, my favorite (and not (only!) because it uses XML::Twig) being xluke_repwalker.pl, a pretty useful script to track your nodes reputation.

      I installed expat. Then I typed in 'perl -MCPAN -e shell' and then installed XML::Parser. All went well until I tried to install XML::Simple
      It seemed to find all the files necessary, but at the end it failed to test and install.
      Could somebody enlighten me...
      -touch
        What exactly is the error? Compile-time or . . .?

        What platform are you using?

        chiller