Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Modules Not Found That Are Correctly Installed

by initself (Monk)
on Jul 14, 2006 at 05:39 UTC ( #561149=perlquestion: print w/replies, xml ) Need Help??

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

I cannot understand why WWW::Mechanize::Sleepy does not find WWW::Mechanize on my machine.

Compiling from Scratch

root@jasmines:/usr/local/src/WWW-Mechanize-Sleepy-0.5# perl Makefile.P +L If you are testing: - for 'make test' to work you must be connected to the Internet - expect 'make test' to take some time since it tests sleepiness Warning: prerequisite WWW::Mechanize 0.58 not found. Writing Makefile for WWW::Mechanize::Sleepy root@jasmines:/usr/local/src/WWW-Mechanize-Sleepy-0.5# locate Mechaniz +e.pm /usr/lib/perl5/site_perl/5.8.0/WWW/Mechanize.pm

One-liner to Test

root@jasmines:/usr/local/src/WWW-Mechanize-Sleepy-0.5# perl -wle 'use +WWW::Mechanize 99' WWW::Mechanize version 99 required--this is only version 1.18 at -e li +ne 1. BEGIN failed--compilation aborted at -e line 1.

Version 1.18 should be sufficient, right?

I've tried everything. Other modules are failing to install for CPAN for similar reasons. What might cause something like this?

Replies are listed 'Best First'.
Re: Modules Not Found That Are Correctly Installed
by rinceWind (Monsignor) on Jul 14, 2006 at 06:40 UTC

    Could you try the following:

    perl -MWWW::Mechanize -e 'print WWW::Mechanize->VERSION,"\n"'

    Also, see where you can find Mechanize.pm in any of the paths under @INC. You might have multiple copies floating around.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

Re: Modules Not Found That Are Correctly Installed
by Khen1950fx (Canon) on Jul 14, 2006 at 08:16 UTC
    I tried to install WWW::Mechanize::Sleepy. I went through all the steps that you went through. I got the same results. The tests failed every time. However, I tried something a little different. WWW::Mechanize-1.18 should work, theoretically, but it doesn't, so I compared 1.18 with 0.58---there are some radical differences between the two. I reinstalled WWW::Mechanize-0.58. After that, I reinstalled WWW::Mechanize::Sleepy, and all tests were successful! The installation was successful.

    As far as WWW::Mechanize::Sleepy's not finding WWW::Mechanize, that's a problem with the module---it's not your system. So, give this procedure a try. See:

    WWW::Mechanize-0.58

      This sounds like a bug in Sleepy. Either you or the OP should report this as a bug on rt.cpan.org.

      Falling back to backpan is very much a last resort. You don't know what other code the OP has that relies on WWW::Mechanize.

      Also, if you upgrade WWW::Mechanize after installing WWW::Mechanize::Sleepy, do you get any operational failures, or was it just the tests that needed 0.58?

      --

      Oh Lord, won’t you burn me a Knoppix CD ?
      My friends all rate Windows, I must disagree.
      Your powers of persuasion will set them all free,
      So oh Lord, won’t you burn me a Knoppix CD ?
      (Missquoting Janis Joplin)

        Thanx for the advice. Will do. I agree with you that falling back on BACKPAN is a last resort.
        I had no operational failures. It seems that 0.58 was only needed by the tests:-)
Re: Modules Not Found That Are Correctly Installed
by reneeb (Chaplain) on Jul 14, 2006 at 07:59 UTC
    Do you have two different Perl installations on your machine?
      No, sir.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://561149]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-07-03 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?