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

Hello monks

I've got a question that might seem trivial, but that I've been struggling with for a while, and could use a bit of help with

I'm attempting to use Win32::IE::Mechanize in a script, but I'm getting the message can't find in @INC. It was my understanding that if you download the .tar.gz file and extract it into your lib it will work. But I guess some modules must be built/installed? I'm having some trouble finding non-conflicting directions as to how to do this.

I tried entering cpan Win32::IE::Mechanize into cmd line, it crunched for a while, and eventually told me t/jstest.t and t/swaplist.t failed make test and that it wouldn't install without force. Someone in the chatterbox told me they were probably unimportant tests and that I should install anyways. Is this true? If so how can I do this?

I also tried using the ppm command. I have added all the suggested repositories, however when I type Win32::IE::Mechanize into the search on the top there are no results.

Can you give me any idea of what I am doing wrong? Other methods of building/installing a module?

Replies are listed 'Best First'.
Re: Win32::IE::Mechanize Difficulties
by jeffreyray (Sexton) on Jan 14, 2010 at 02:37 UTC

    See Installing Modules.

    To enter cpan interactively - just type cpan from the command line. Then enter the command install Win32::IE::Mechanize.

    If that doesn't work - download from CPAN and extract. Enter the directory from a command prompt and execute:

    perl Makefile.pl dmake dmake test dmake install

    You may need to acquire dmake

Re: Win32::IE::Mechanize Difficulties
by Sinistral (Monsignor) on Jan 14, 2010 at 01:20 UTC
    Instead of
    cpan Win32::IE::Mechanize
    try
    perl -MCPAN -e shell cpan>force install Win32::IE::Mechanize
    or if you prefer the cpan command:
    cpan cpan>force install Win32::IE::Mechanize
    or if you like the cpan single invocation:
    cpan -fi Win32::IE::Mechanize
      Thanks much for the reply, I used you're last method and it worked great!
Re: Win32::IE::Mechanize Difficulties
by ikegami (Patriarch) on Jan 14, 2010 at 03:02 UTC

    The uwinnipeg ppm repo has it for 5.10
    http://cpan.uwinnipeg.ca/PPMPackages/10xx/

Re: Win32::IE::Mechanize Difficulties
by Khen1950fx (Canon) on Jan 14, 2010 at 00:59 UTC
    If you mean by "your lib" your local lib, then you want to use local::lib.
      Its saved to c/perl/lib, which is in @INC
        Win32::IE::Mechanize requires Win32::OLE. If you don't have that, Win32::IE::Mechanize won't be found:-).