Can't locate WWW/Mechanize/Firefox.pm in @INC (@INC contains: C:/Perl/ +site/lib C :/Perl/lib .) at C:\Perl Scripts\Open_Site.pl line 4. BEGIN failed--compilation aborted at C:\Perl Scripts\Open_Site.pl line + 4.

I am trying to execute few examples provided in http://search.cpan.org/~corion/WWW-Mechanize-Firefox-0.68/lib/WWW/Mechanize/Firefox.pm. As suggested in this site, i have Mozrepl add on installed in my site. i also have LWP module installed

But i am not able to install this particular module WWW::Mechanize::Firefox. It appears that i have 2 versions of perl installed. I have 2 versions perl v5.8.3 (which came along with Oracle installation.) and perl v5.16.2 which had come with Active perl installation and because of which i believe i am facing these issues. I had executed one of the scripts that someone suggested in one of the forums to check INC and i recieved the following results:

C:\Perl Scripts>Check_INC.pl C:\Perl\lib C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib/MSWin32-x86-multi-thread C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib/MSWin32-x86-multi-th +read C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib C:\oracle\product\10.2.0\db_1\sysman\admin\scripts C:\oracle\product\10.2.0\db_1\perl\lib\5.8.3\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\lib\5.8.3 C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86-multi-thread C:\oracle\product\10.2.0\db_1\perl\site\5.8.3 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib/MSWin32-x86-multi-th +read C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib C:\oracle\product\10.2.0\db_1\sysman\admin\scripts C:/Perl/site/lib C:/Perl/lib
I have tried to execute where perl and i got the following path:
C:\Perl Scripts>where perl C:\Perl\bin\perl.exe

I am using Windows 7 basic edition and i have installed Active Perl in my system to work with Perl. Please suggest how do i avoid this error and help me install www::mechanize::firefox correctly. If uninstalling Oracle would help then i would do that as well.


In reply to Can't locate WWW/Mechanize/Firefox.pm in @INC by Pavan Renjal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.