Special_K has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to install WWW::Mechanize::PhantomJS and am having some problems. Here is the top level build output and error message:
> cpanm WWW::Mechanize::PhantomJS --> Working on WWW::Mechanize::PhantomJS Fetching http://www.cpan.org/authors/id/C/CO/CORION/WWW-Mechanize-Phan +tomJS-0.03.tar.gz ... OK Configuring WWW-Mechanize-PhantomJS-0.03 ... OK ==> Found dependencies: Selenium::Remote::Driver --> Working on Selenium::Remote::Driver Fetching http://www.cpan.org/authors/id/G/GE/GEMPESAW/Selenium-Remote- +Driver-0.2002.tar.gz ... OK Configuring Selenium-Remote-Driver-0.2002 ... OK ==> Found dependencies: LWP::Protocol::PSGI --> Working on LWP::Protocol::PSGI Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/LWP-Protocol-PSG +I-0.07.tar.gz ... OK Configuring LWP-Protocol-PSGI-0.07 ... OK ==> Found dependencies: HTTP::Message::PSGI --> Working on HTTP::Message::PSGI Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-1.0030.tar +.gz ... OK Configuring Plack-1.0030 ... OK ==> Found dependencies: Test::TCP --> Working on Test::TCP Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Test-TCP-2.06.t +ar.gz ... OK Configuring Test-TCP-2.06 ... OK Building and testing Test-TCP-2.06 ... FAIL ! Timed out (> 1800s). Use --verbose to retry. ! Installing Test::TCP failed. See /home/user1/.cpanm/work/1404664893. +6244/build.log for details. Retry with --force to force install it. ! Installing the dependencies failed: Module 'Test::TCP' is not instal +led ! Bailing out the installation for Plack-1.0030. ! Installing the dependencies failed: Module 'HTTP::Message::PSGI' is +not installed ! Bailing out the installation for LWP-Protocol-PSGI-0.07. ! Installing the dependencies failed: Module 'LWP::Protocol::PSGI' is +not installed ! Bailing out the installation for Selenium-Remote-Driver-0.2002. ! Installing the dependencies failed: Module 'Selenium::Remote::Driver +' is not installed ! Bailing out the installation for WWW-Mechanize-PhantomJS-0.03.
Here are some excerpts from the build log for Test-TCP, the build log referenced above:
Configuring WWW-Mechanize-PhantomJS-0.03 Running Makefile.PL (Re)Creating lib/WWW/Mechanize/PhantomJS/Examples.pm Can't locate Selenium/Remote/Driver.pm in @INC (@INC contains: /usr/li +b/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_ +perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int / +usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-thread +s-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/pe +rl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 . lib) at ./example +s/../lib/WWW/Mechanize/PhantomJS.pm line 3. BEGIN failed--compilation aborted at ./examples/../lib/WWW/Mechanize/P +hantomJS.pm line 3. Compilation failed in require at examples/gen_examples_pod.pl line 32. Warning: prerequisite Selenium::Remote::Driver 0.18 not found. Checking if your kit is complete... Looks good
Building and testing Test-TCP-2.06 cp lib/Test/TCP/CheckPort.pm blib/lib/Test/TCP/CheckPort.pm cp lib/Net/EmptyPort.pm blib/lib/Net/EmptyPort.pm cp lib/Test/TCP.pm blib/lib/Test/TCP.pm Manifying blib/man3/Net.EmptyPort.3pm Manifying blib/man3/Test.TCP.3pm Manifying blib/man3/Test.TCP.CheckPort.3pm PERL_DL_NONLAZY=1 /usr/bin/perl.exe "-MExtUtils::Command::MM" "-MTest: +:Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib +/lib', 'blib/arch')" t/*.t # Test::More: 0.98 t/00_compile.t ................. ok -> FAIL Timed out (> 1800s). Use --verbose to retry. Makefile:854: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Terminated -> FAIL Installing Test::TCP failed.
At this point, installation of all modules up the dependency tree fail, and the original call to install WWW::Mechanize::PhantomJS fails.
Is the original failure of Selenium::Remote::Driver a problem, or is it just the Test::TCP? How do I debug this?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: problems installing WWW::Mechanize::PhantomJS
by Corion (Patriarch) on Jul 07, 2014 at 07:00 UTC | |
by Special_K (Pilgrim) on Jul 09, 2014 at 03:08 UTC | |
by Anonymous Monk on Jul 09, 2014 at 03:14 UTC | |
by Special_K (Pilgrim) on Jul 11, 2014 at 01:21 UTC | |
Re: problems installing WWW::Mechanize::PhantomJS
by bojinlund (Monsignor) on Jul 07, 2014 at 07:15 UTC | |
by Special_K (Pilgrim) on Jul 11, 2014 at 01:25 UTC | |
by Corion (Patriarch) on Jul 11, 2014 at 06:12 UTC |