in reply to Re: Can't locate WWW/Mechanize/Firefox.pm in @INC
in thread Can't locate WWW/Mechanize/Firefox.pm in @INC
@AnonymousMonk: Thanks for the reply! I believe it should be the latest one that came with Active Perl installation perl v5.16.2, but i am really not sure whether perl script is executed with this version or not. Moreover, i am relatively new to perl. Can you please let me know where i need to execute die $^X command?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can't locate WWW/Mechanize/Firefox.pm in @INC
by ww (Archbishop) on Jan 16, 2013 at 23:27 UTC | |
Don't guess! The answer based on a guess has very little value as a response to a question from someone who's trying to help. Try the command suggested in Re: Can't locate WWW/Mechanize/Firefox.pm in @INC and then tell us what it does (more on this -- how to execute -- is below).And don't rely on external tools (either Check_INC.pl, which you don't show) nor where to tell you something about Perl that you can learn from your own Perl. $ perl -v ; perl -e "print join \"\n\", @INC" can both help, or, use this little piece of code, which appeared here recently: use ExtUtils::Installed; my $module; my $inst = ExtUtils::Installed->new(); my (@modules) = $inst->modules(); foreach $module (@modules) { say "$module"; } </c> The die $^X command gets executed from your command prompt, "C:\>" by preference (mine, an idiosyncracy) like this:
... but at a quick glance, it appears from the content of your second code block that you're executing Oracle's 5.8 version of Perl... in which case, perhaps you didn't ask (Active State?) to add 5.16 to your path. So check your path too... is there an instance of Perl that's not in an Oracle directory? Oh yes; @Annonymous Monk doesn't live here. But you can address Monks by name, by [name]... for example, to say your name to call you attention to this, I use that form of address: Pavan Renjal Update: http://www.perl.com/pub/2002/05/14/mod_perl.html (under the heading "use(), require(), do(), %INC and @INC Explained" may be illuminating. | [reply] [d/l] [select] |
by Pavan Renjal (Initiate) on Jan 17, 2013 at 21:52 UTC | |
2. I executed the 2nd code for INC 3. I executed the 3rd code and i got the following details: 4. The 4th code gave me the following results:
For the next query "... but at a quick glance, it appears from the content of your second code block that you're executing Oracle's 5.8 version of Perl... in which case, perhaps you didn't ask (Active State?) to add 5.16 to your path. So check your path too... is there an instance of Perl that's not in an Oracle directory?" Please help me understand this. How do i check the path? "is there an instance of Perl that's not in an Oracle directory?" - How do i check this? Thanks for the link related to INC. Thanks for all your time and help! | [reply] [d/l] [select] |
by ww (Archbishop) on Jan 18, 2013 at 00:40 UTC | |
path with no arguments from your command prompt will show the existing path. you can add to it, change it, etc. Your "2." seems to say that the Oracle @inc may be higher (earlier) in your path than the 5.16 path... or that 5.16 doesn't have a proper path to your modules (which should be in a series of directories subordinate to the dir named Perl. As to an additional instance of Perl, you've answered that with perl -v which says immediately that 5.16 was executing. So, you've already checked that. But we still don't have quite enough info to give you an Rx for a cure. | [reply] [d/l] [select] |
|
Re^3: Can't locate WWW/Mechanize/Firefox.pm in @INC
by Anonymous Monk on Jan 17, 2013 at 00:17 UTC | |
execute it as diePerlPath.pl or perl -e " die $^X" so you can learn which perl is being executed If you have a specific perl in mind, use an absolute path to it And manage your %PATH% and associations so you're using the perl you want to use and not the other one On win32 , shells, %PATH% and the like vienv - Edit local environment variables on Win32, CleanPath
| [reply] [d/l] [select] |
by Pavan Renjal (Initiate) on Jan 17, 2013 at 21:58 UTC | |
Thanks for the codes, i will go through them and try to execute them. | [reply] [d/l] |