Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

perl configuration shows some very strange things... [an easy one]

by Perlbeginner1 (Scribe)
on Nov 03, 2012 at 11:32 UTC ( #1002096=perlquestion: print w/replies, xml ) Need Help??
Perlbeginner1 has asked for the wisdom of the Perl Monks concerning the following question:


i have various issues with installing and running WWW::Mechanize::FireFox on my machine.

-well: Mechanize FireFox lets you use FireFox with the Same behaviour as Perl Mechanize itself. You can do many good things -and this lets so save time. A great perl-option to overcome obstacles i enveryday live.

i have had a closer look at the many things

Q: do i have two instances of Perl on the machine?! did i manage to install Mecha::FireFox correctly is FireFox running with JavaScript enabled. One of the key items on my CPAN configuration is 'prerequisite_policy follow'; Well to be frank that is the most sensible choice. If a prerequisite module is missing, it will be installed automatically. Well i have looked at many things - my trace shows this happening; some of the modules needed are probably missing, so it tries to install them before installing WWW::Mechanize::Firefox. I do note that my config contains several strange things ...

use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new( tab => 'current', ); $mech->get('', ':content_file' => 'google_com.html' );

martin@linux-wyee:~/perl> perl Can't locate WWW/Mechanize/ in @INC (@INC contains: /usr/lib +/perl5/site_perl/5.16.0/i586-linux-thread-multi /usr/lib/perl5/site_p +erl/5.16.0 /usr/lib/perl5/vendor_perl/5.16.0/i586-linux-thread-multi +/usr/lib/perl5/vendor_perl/5.16.0 /usr/lib/perl5/5.16.0/i586-linux-th +read-multi /usr/lib/perl5/5.16.0 /usr/lib/perl5/site_perl/5.16.0/i586 +-linux-thread-multi /usr/lib/perl5/site_perl/5.16.0 /usr/lib/perl5/si +te_perl .) at line 1. BEGIN failed--compilation aborted at line 1. martin@linux-wyee:~/perl>

cpan[1]> o conf $CPAN::Config options from /root/.cpan/CPAN/ commit [Commit changes to disk] defaults [Reload defaults from disk] help [Short help about 'o conf' usage] init [Interactive setting of all options] applypatch [] auto_commit [0] build_cache [100] build_dir [/root/.cpan/build] build_dir_reuse [0] build_requires_install_policy [yes] bzip2 [/usr/bin/bzip2] cache_metadata [1] check_sigs [0] colorize_debug undef colorize_output [0] colorize_print undef colorize_warn undef commandnumber_in_prompt [1] commands_quote undef connect_to_internet_ok [1] cpan_home [/root/.cpan] curl undef dontload_hash undef dontload_list undef ftp undef ftp_passive [1] ftp_proxy [] ftpstats_period undef ftpstats_size undef getcwd [cwd] gpg [/usr/bin/gpg] gzip [/usr/bin/gzip] halt_on_failure [0] histfile [/root/.cpan/histfile] histsize [100] http_proxy [] inactivity_timeout [0] index_expire [1] inhibit_startup_message [0] keep_source_where [/root/.cpan/sources] load_module_verbosity [none] lynx undef make [/usr/bin/make] make_arg [] make_install_arg [] make_install_make_command [/usr/bin/make] makepl_arg [] mbuild_arg [] mbuild_install_arg [] mbuild_install_build_command [./Build] mbuildpl_arg [] ncftp undef ncftpget undef no_proxy [] pager [less] password undef patch [] patches_dir undef perl5lib_verbosity [none] prefer_external_tar [1] prefer_installer [MB] prefs_dir [/root/.cpan/prefs] prerequisites_policy [follow] proxy_pass undef proxy_user undef randomize_urllist undef scan_cache [atstart] shell [/bin/bash] show_unparsable_versions [0] show_upload_date [0] show_zero_versions [0] tar [/bin/tar] tar_verbosity [none] term_is_latin [1] term_ornaments [1] test_report [0] trust_test_report_history [0] unzip [/usr/bin/unzip] urllist 0 [] 1 [] 2 [] use_sqlite [0] username undef version_timeout [15] wait_list undef wget [/usr/bin/wget] yaml_load_code [0] yaml_module [YAML]

what do you say. I guess that this strange behaviour i get everytime i try to start Mechnize-FireFox is quite a side-effect of my installation and configuration

Replies are listed 'Best First'.
Re: perl configuration shows some very strange things... [an easy one] - (easy? clearly not)
by marto (Bishop) on Nov 03, 2012 at 16:13 UTC
    There's nothing here which is any different from your many previous threads about this one module. If you continue to post such nonsense, you're not going to get vastly different answers. Make some effort, learn the basics of the OS (you seem happy to ask questions/cross post on the opensuse forums), then learn the basics of perl. We've been through this many times.
Re: perl configuration shows some very strange things... [an easy one]
by 2teez (Priest) on Nov 03, 2012 at 11:51 UTC

    Hi Perlbeginner1,
    I think you need to step back a while on this.
    Because, like it was told you in this trend mozrepl plus www.mecha firefox - curious errors, and others before it, that the module WWW::Mechanize::Firefox is not installed on your Perl standard directories which is on your system atleast as shown by this error:

    Can't locate WWW/Mechanize/ in @INC (@INC contains: /usr/lib +/perl5/site_perl/5.16.0/i586-linux-thread-multi /usr/lib/perl5/site_p +erl/5.16.0 /usr/lib/perl5/vendor_perl/5.16.0/i586-linux-thread-multi +/usr/lib/perl5/vendor_perl/5.16.0 /usr/lib/perl5/5.16.0/i586-linux-th +read-multi /usr/lib/perl5/5.16.0 /usr/lib/perl5/site_perl/5.16.0/i586 +-linux-thread-multi /usr/lib/perl5/site_perl/5.16.0 /usr/lib/perl5/si +te_perl

    What I device you try is this:
    1. If you have access to another system, where you can try installing the module, see it that works. I had to install the module using cpan> force install WWW::Mechanize::Firefox on Win 7
    2. Install Perlbrew a tool to manage multiple perl installations in your $HOME directory. Then try several perl installations with this module
    Maybe this may work for you.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
      helllo dear 2teez
      many many thanks - i will try to install the discussed module on a nother system.
      a great a very great and good approach.

      i come back and report all my findings.

      this is a great forum. AND am happy have agreat day

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1002096]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-04-24 18:40 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (444 votes). Check out past polls.