Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Mark Seger
July 29, 2008, 11:35 am
rate this thread
when I run my script I get:
Can't locate features.ph in @INC (did you run h2ph?)...
I sure hope I don't have to run h2ph because I'd rather simply know if
ioctl.ph is loadable or not. I'm running on a fairly old system with
perl 5.8.0 and am wondering is this is correct behavior or if my
installation might have gotten corrupted over the years. I can't find
'features' anywhere under the perl tree.
In fact, if I comment out the "require 'features.ph'" in the ioctl.ph I
then start getting errors that it can't find ioctls.ph which is clearly
If my distro is indeed correct, does anyone at least know which distro
started shipping with the appropriate includes in place?
Re: How to find ioctl.ph - is my version of perl busted?
h2ph is not much used any more; a lot of distributions of perl don't
bother installing the .ph files. IIRC h2ph chokes on some of the weirder
stuff in the glibc headers: maybe that's your problem here?
As a rule it's better nowadays to create a proper XS module that uses
the C compiler to #include the headers rather than trying to convert
them into Perl. If this is just a quick-n-dirty job you may find
Joy and Woe are woven fine,
A Clothing for the Soul divine William Blake
Under every grief and pine 'Auguries of Innocence'
Runs a joy with silken twine. email@example.com
- » Posting Guidelines for comp.lang.perl.misc ($Revision: 1.8 $)
- — Previous thread in » PERL Discussions