https://wiki.archlinux.org/index.php/Co … bumping%22
Closing.
]]>This is my first message on this forum and I don't know if it is accepted to reply to solved threads.
sometimes it's OK... but what is definetely not OK is to necropost a five year old thread.
]]>perl -e 'require "sys/ioctl.ph"; ioctl(STDIN, &TIOCSTI, $_) for split "", join " ", @ARGV' echo test
I get this
Can't locate sys/ioctl.ph in @INC (did you run h2ph?) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at -e line 1.
It works if I work around the issue
perl -e 'ioctl(STDIN, 0x5412, $_) for split "", join " ", @ARGV' echo test
Since posting the question, I looked into it a bit more and found "h2ph" (thanks to the prompt in the error message ). I read this and went ahead and did this:
(cd /usr/include; sudo h2ph -r -l .)
After that, my original command worked. However, I think "h2ph" run like that may generate a load of unwanted perl header files. It probably doesn't matter but a little more thought might be appropriate.
]]>Post the code. I'm sure that someone can answer.
]]>require "sys/ioctl.ph
This doesn't appear to be recognised by perl on Arch. Is this an omission, is the snippet wrong, or is there a package that I need to install ?
I've googled and seen other mentions of this header and it being missing. I've don't think I've missed an Arch package.
Perl isn't everyday for me - perpaps someone for whom it is would know the answer to this?
Many thanks.
]]>