Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 ( #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
Node Status?
node history
Node Type: note [id://1100038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2019-05-25 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (152 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!