Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: CPAN.pm says module is up-to-date, but running it says XS code is not built.

by Khen1950fx (Canon)
on Sep 09, 2014 at 22:57 UTC ( [id://1100038]=note: print w/replies, xml ) Need Help??


in reply to CPAN.pm says module is up-to-date, but running it says XS code is not built.

IO::Pty::HalfDuplex has some portability problems. There's also the typo read. There is no method read:-). Use recv instead. Neither Ptrace nor SysctlPoll worked, even though the module passed all tests. Here's what worked for me:
#!/usr/bin/perl use strict; use warnings; use IO::Pty::HalfDuplex; my $pty = IO::Pty::HalfDuplex->new; $pty->spawn("nethack") or warn "Spawn failed: $!"; unless ( $pty->is_active ) { warn "$pty is not active"; } else { print $pty->recv; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-23 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found