unable to install Dancer::Session::Cookie
Hello I try to install Dancer::Session::Cookie (Centos 6.4, Dancer 1.3116, perl v5.10.1 ) and I've got a error cpanm Dancer::Session::Cookie --> Working on Dancer::Session::Cookie Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Dancer-Session-Cookie-0.22.tar.... ... OK Configuring Dancer-Session-Cookie-0.22 ... OK Building and testing Dancer-Session-Cookie-0.22 ... FAIL if I see end of /root/.cpanm/build.log, there a error with autoflush method from FileHandle cpanm FileHandle FileHandle is up to date. (2.02) someone has a idea ? t/00-report-prereqs.t ........ ok t/01-session.t ............... ok Can't locate object method "autoflush" via package "FileHandle" at /usr/local/share/perl5/Dancer/Logger/File.pm line 59. # Looks like you planned 3 tests but ran 2. # Looks like your test exited with 25 just after 2. t/02-configfile.t ............ Dubious, test returned 25 (wstat 6400, 0x1900) Failed 1/3 subtests t/03-path.t .................. ok t/04-session_name.t .......... ok t/05-session_secure.t ........ ok
Dancer 1.3116 server 29694 listening on http://0.0.0.0:50940 t/06-redirect.t .............. ok Dancer 1.3116 server 29696 listening on http://0.0.0.0:50657 t/redirect-session-dancer.t .. ok Dancer 1.3116 server 29698 listening on http://0.0.0.0:50336 Dancer 1.3116 server 29699 listening on http://0.0.0.0:50807 Dancer 1.3116 server 29700 listening on http://0.0.0.0:50244 Dancer 1.3116 server 29701 listening on http://0.0.0.0:50603 t/server.t ................... ok Dancer 1.3116 server 29703 listening on http://0.0.0.0:50585 t/session-stealing.t ......... ok
Test Summary Report ------------------- t/02-configfile.t (Wstat: 6400 Tests: 2 Failed: 0) Non-zero exit status: 25 Parse errors: Bad plan. You planned 3 tests but ran 2. Files=11, Tests=33, 3 wallclock secs ( 0.03 usr 0.04 sys + 2.32 cusr 0.41 csys = 2.80 CPU) Result: FAIL Failed 1/11 test programs. 0/33 subtests failed. make: *** [test_dynamic] Erreur 255 -> FAIL Installing Dancer::Session::Cookie failed. See /root/.cpanm/build.log for details ------------------- t/02-configfile.t (Wstat: 6400 Tests: 2 Failed: 0)
On Thu, Jul 4, 2013 at 10:18 AM, Hugues Max <huguesmax@gmail.com> wrote:
if I see end of /root/.cpanm/build.log, there a error with autoflush method from FileHandle
I suspect Dancer should be explicitly creating IO::File objects rather than relying on open, which prior to v5.12 might create FileHandle objects or IO::Handle objects depending on what's loaded. That said, I don't see what in that Dancer::Session::Cookie test would be setting a file logger to trigger that error in the first place. David -- David Golden <xdg@xdg.me> Take back your inbox! → http://www.bunchmail.com/ Twitter/IRC: @xdg
On Thu, Jul 4, 2013 at 11:22 PM, David Golden <xdg@xdg.me> wrote:
On Thu, Jul 4, 2013 at 10:18 AM, Hugues Max <huguesmax@gmail.com> wrote:
if I see end of /root/.cpanm/build.log, there a error with autoflush method from FileHandle
I suspect Dancer should be explicitly creating IO::File objects rather than relying on open, which prior to v5.12 might create FileHandle objects or IO::Handle objects depending on what's loaded.
Can you explain what you mean when you say open creates objects? I am running 5.14 and when I run: perl -E 'open $x, "foo"; say ref $x' It prints "GLOB". -Naveed
That said, I don't see what in that Dancer::Session::Cookie test would be setting a file logger to trigger that error in the first place.
David
-- David Golden <xdg@xdg.me> Take back your inbox! → http://www.bunchmail.com/ Twitter/IRC: @xdg _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
On Fri, Jul 5, 2013 at 2:48 PM, Naveed Massjouni <naveedm9@gmail.com> wrote:
Can you explain what you mean when you say open creates objects? I am running 5.14 and when I run:
perl -E 'open $x, "foo"; say ref $x'
It prints "GLOB".
The IO slot of the GLOB holds an IO::File object: $ perl -wE 'open my $fh, ">", "foo.txt"; say ref( *{$fh}{IO} )' IO::File At least as of Perl v5.12, anyway -- before that the IO slot could be a FileHandle or an IO::Handle, IIRC. However, even now Perl doesn't actually load IO::File, it merely blesses. In Perl v5.14, I added a feature to automatically load IO::File on demand if you try to call a method on a file handle. Previously, it just died. David -- David Golden <xdg@xdg.me> Take back your inbox! → http://www.bunchmail.com/ Twitter/IRC: @xdg
participants (3)
-
David Golden -
Hugues Max -
Naveed Massjouni