CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242

 



dilbert
User

Oct 30, 2012, 12:46 PM

Post #1 of 10 (2853 views)
MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 Can't Post

 
gentlemen,


I want to install mozrepl on OpenSUSE version 12.2. It gets pretty tricky - note Mozrepl is a additional part that is needed by the WWW::Mechanize::Firefox::
I had a bunch of troubles with mozRepl - and I tried to follow the first 3-4 steps from CPAN. I tried to install it with zypper in or with the repo: https://github.com/bard/mozrepl.github

See many good links and ressources regarding Mechanize - Firefox - Troubleshooting https://duckduckgo.com/html/?q=mozrepl https://github.com/bard/mozrepl.github

see the issues that were reported:

https://addons.mozilla.org/en-US/firefox/addon/mozrepl/


note: does the firefox version 16.01 on opensuse 12.2 cause any issues

note: mozrepl is listening on port 4242

note: see the testscript:


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



and the issues



Code
martin@linux-wyee:~/perl> perl moz_test3.pl 
Can't locate WWW/Mechanize/Firefox.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.16.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/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-thread-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/site_perl .) at moz_test3.pl line 1.
BEGIN failed--compilation aborted at moz_test3.pl line 1.
martin@linux-wyee:~/perl>


what can i do now!?

look forward to hear from you

greetings


(This post was edited by dilbert on Oct 30, 2012, 12:47 PM)


wickedxter
User

Oct 30, 2012, 1:08 PM

Post #2 of 10 (2849 views)
Re: [dilbert] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

did you do what I told you todo last time? it seems to be the same error message from perl that it cant find the module.

1. look threw the file system for the module firefox.pm that is in the folders /WWW/Mechanize/

2. once you've found the whole directory use the lib module to add the directory to the @INC so perl can find the module.

3. do you have more then one version of perl installed?


dilbert
User

Nov 3, 2012, 4:36 AM

Post #3 of 10 (2834 views)
Re: [wickedxter] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

hello again dear friend.


well you re right - probably i have two instances of perl.

dear wickedxter - i alllmost go crazy...

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('http://google.com',
':content_file' => 'google_com.html' );




Code
 

martin@linux-wyee:~/perl> perl moz_test3.pl
Can't locate WWW/Mechanize/Firefox.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.16.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/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-thread-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/site_perl .) at moz_test3.pl line 1.
BEGIN failed--compilation aborted at moz_test3.pl line 1.
martin@linux-wyee:~/perl>




Code
 

cpan[1]> o conf
$CPAN::Config options from /root/.cpan/CPAN/MyConfig.pm:
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 [http://artfiles.org/cpan.org/]
1 [http://www.idg.pl/mirrors/CPAN/]
2 [http://ftp.heanet.ie/mirrors/ftp.perl.org/pub/CPAN/]
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

look forward to hear from you


wickedxter
User

Nov 3, 2012, 9:13 AM

Post #4 of 10 (2823 views)
Re: [dilbert] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

i dont have opensuse installed so have no idea where perl is installed.... is the perl version 5.16 come with the OS or did you install that? if so cpan might be installing the module under the OS's perl version which ever that might be...

can you do a file search for the module's name that's the fastest way to locate the directory.


i found this info on the site: http://en.opensuse.org/openSUSE:Packaging_Perl


dilbert
User

Nov 3, 2012, 4:55 PM

Post #5 of 10 (2809 views)
Re: [wickedxter] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

hello dear wickedxter

many many thanks - that sounds great. i will install perl on a second machine - fresh - and from the opensuse-repository

i comeback and report all my findings

many many thanks so far.

greetings
dilbert


Laurent_R
Veteran / Moderator

Nov 4, 2012, 1:43 AM

Post #6 of 10 (2797 views)
Re: [dilbert] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

I am a bit surprised. Isn't Perl pre-installed on any openSUSE environment?


wickedxter
User

Nov 4, 2012, 10:40 AM

Post #7 of 10 (2792 views)
Re: [Laurent_R] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

It does but i dont know whats default.. i found an installer for opensuse perl 5.16 ...


wickedxter
User

Nov 4, 2012, 10:45 AM

Post #8 of 10 (2791 views)
Re: [dilbert] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

i see you've found some answers in the opensuse forum.. dilbert


(This post was edited by wickedxter on Nov 4, 2012, 10:45 AM)


dilbert
User

Nov 5, 2012, 12:01 PM

Post #9 of 10 (2767 views)
Re: [wickedxter] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

 
hello dear Laurent_R hello dear wickedxter


many many thanks for the reply - happy to hear from you. Well i believe that the opensuse is a superb open linux system.

note: i posted the issues there too - since the Suse-System and is behaviour is very special

Note: the Suse-experts very very often tell me to avoid all installations via terminal: the try to stop me installing via CPAN and force me to install
via repository.

Well to go ahead i thought that i have to try out some things. I tried to install Perl on a new system - on another notebook - with fresh opensuse 12.2.
Note: this time i went to YAST and added the repository a new link - this one :

http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_12.2/


What i did was the following;

now it did a fresh install on a new machne - with this repo
Index of /repositories/devel:/languages:/perl/openSUSE_12.2

http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_12.2/


question: now i need WWW::Mechanize::FireFox

how should i include this - how to install !?

plz advice

THX DILBERT

BTW: SEE


http://search.cpan.org/~corion/WWW-Mechanize-Firefox-0.68/lib/WWW/Mechanize/Firefox/Troubleshooting.pod

http://search.cpan.org/~corion/WWW-Mechanize-Firefox-0.68/lib/WWW/Mechanize/Firefox/Installation.pod
WWW::Mechanize::Firefox::Troubleshooting - search.cpan.org
WWW::Mechanize::Firefox::Installation - search.cpan.org


wickedxter
User

Nov 6, 2012, 5:37 PM

Post #10 of 10 (2724 views)
Re: [dilbert] MozRepl installation errors on opensuse 12.2 - with firefox version 16.01 listening port 4242 [In reply to] Can't Post

I posted a link above in anouther post that shows u how to get modules from cpan

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives