Hello
pryrt,
About cpanm client read my Re: Should cpanminus be part of the standard Perl release? -- MSWin32 Infact I tryed it a bit and then I abandoned it.
Using straberry perl 5.24 portable, after a first failed installation of WWW::Mechanize::Chrome I used force install Log::Log4perl I had no problem installing WWW::Mechanize::Chrome using classic cpan client.
cpan> install WWW::Mechanize::Chrome
...
CORION/WWW-Mechanize-Chrome-0.27.tar.gz
C:\ulisse\perl5.24-64b\c\bin\dmake.exe install UNINST=1 -- OK
Ahh.. ..oops I have not chrome instelled: sorry didnt read carefully: ok I install chrome, in the cpan client I look WWW::Mechanize::Chrome and there I prove -l -v (I think is correct) and I got:
cpan> look WWW::Mechanize::Chrome
cmd> prove -l -v
...
t\51-mech-links.t ................
1..7
# Testing with C:/Program Files (x86)/Google/Chrome/Application/chrome
+.exe
# Using Chrome version 'HeadlessChrome/71.0.3578.98'
ok 1 - An object of class 'WWW::Mechanize::Chrome' isa 'WWW::Mechanize
+::Chrome'
ok 2 - All 5 links were found
ok 3 - The two links were found
ok 4 - BASE tags get respected
ok 5 - BASE tags get respected for iframes
ok 6 - FRAME tag
ok 7 - IFRAME tag
Couldn't kill pid '6776' at C:/ulisse/perl5.24-64b/perl/site/lib/Test/
+HTTP/LocalServer.pm line 237.
ok
...
All tests successful.
Files=42, Tests=358, 263 wallclock secs ( 0.22 usr + 0.08 sys = 0.30
+ CPU)
Result: PASS
the following weird behaviour is probably erroneous..
With my fresh new strawberry portable 5.28 after a first failed installation of the module, I used
force install Future::HTTP and
force notest install Log::Log4perl I had a strange problem installing
Corion's module:
...
Test Summary Report
-------------------
t/00-load.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=42, Tests=359, 257 wallclock secs ( 0.22 usr + 0.03 sys = 0.25
+ CPU)
Result: FAIL
Failed 1/42 test programs. 1/359 subtests failed.
gmake: *** [Makefile:949: test_dynamic] Error 255
CORION/WWW-Mechanize-Chrome-0.27.tar.gz
C:\ulisse\perl5.28-64bit\c\bin\gmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, t
+ry:
reports CORION/WWW-Mechanize-Chrome-0.27.tar.gz
Stopping: 'install' failed for 'WWW::Mechanize::Chrome'.
Failed during this command:
CORION/WWW-Mechanize-Chrome-0.27.tar.gz : make_test NO
#failed 00-load.t????
cpan> look WWW::Mechanize::Chrome
Running look for module 'WWW::Mechanize::Chrome'
Trying to open a subshell in the build directory...
Working directory is C:\ulisse\perl5.28-64bit\cpan\build\WWW-Mechanize
+-Chrome-0.27-0
Microsoft Windows [Versione 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tutti i diritti riservati.
cmd> prove -l -v ./t/00-load.t
./t/00-load.t ..
1..1
# Failed test 'require WWW::Mechanize::Chrome;'
# at ./t/00-load.t line 12.
not ok 1 - require WWW::Mechanize::Chrome;
# Tried to require 'WWW::Mechanize::Chrome'.
# Error: Insecure dependency in eval while running with -T switch
+ at C:/ulisse/perl5.28-64bit/perl/vendor/lib/JSON.
pm line 266.
At this point I'm a bit lost.. and have to cook!
HtH
L*
update
no, the taint switch is not the problem
cmd> perl -T -I ./lib ./t/00-load.t
1..1
not ok 1 - require WWW::Mechanize::Chrome;
# Failed test 'require WWW::Mechanize::Chrome;'
# at ./t/00-load.t line 12.
# Tried to require 'WWW::Mechanize::Chrome'.
# Error: Insecure dependency in eval while running with -T switch
+ at C:/ulisse/perl5.28-64bit/perl/vendor/lib/JSON.
pm line 266.
# Compilation failed in require at lib/Chrome/DevToolsProtocol.pm line
+ 12.
# BEGIN failed--compilation aborted at lib/Chrome/DevToolsProtocol.pm
+line 12.
# Compilation failed in require at lib/WWW/Mechanize/Chrome.pm line 15
+.
# BEGIN failed--compilation aborted at lib/WWW/Mechanize/Chrome.pm lin
+e 15.
# Compilation failed in require at (eval 16) line 2.
Use of uninitialized value in sprintf at ./t/00-load.t line 15.
# Testing WWW::Mechanize::Chrome , Perl 5.028001
update 2
cmd> perl -T -I ./lib -MWWW::Mechanize::Chrome ./t/00-load.t
Insecure dependency in eval while running with -T switch at C:/ulisse/
+perl5.28-64bit/perl/vendor/lib/JSON.pm line 266.
Compilation failed in require at lib/Chrome/DevToolsProtocol.pm line 1
+2.
BEGIN failed--compilation aborted at lib/Chrome/DevToolsProtocol.pm li
+ne 12.
Compilation failed in require at lib/WWW/Mechanize/Chrome.pm line 15.
BEGIN failed--compilation aborted at lib/WWW/Mechanize/Chrome.pm line
+15.
Compilation failed in require.
BEGIN failed--compilation aborted.
update 3
It must be something within look and the spawned cmd.exe inside the cpan client.. and can be related with my own distribution (I have a heavely modified cmd.exe). Infact if I run portableshell.bat inside the perl5.28 portable strawberry directory:
C:\ulisse\perl5.28-64bit\cpan\build\WWW-Mechanize-Chrome-0.27-0> gmake
+ test
...
All tests successful.
Files=42, Tests=358, 257 wallclock secs ( 0.12 usr + 0.05 sys = 0.17
+ CPU)
Result: PASS
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.