fatal error: sys/ioctl.h: No such file or directory

2,477 views
Skip to first unread message

nevp...@gmail.com

unread,
Aug 25, 2017, 11:04:54 AM8/25/17
to link-grammar
Hi All 

I am getting below error while installing IO::Interface::simple module in my windows machine where in I have installed ActivePerl 5.24.

Please suggest any solution.

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'IO-Interface' version '1.09'
Can't find string terminator "'" anywhere before EOF at -e line 1.
  LDS/IO-Interface-1.09.tar.gz
  C:\Perl64\bin\perl.exe Build.PL --installdirs=site -- OK
Running Build for L/LD/LDS/IO-Interface-1.09.tar.gz
Building IO-Interface
C:\Perl64\site\bin\gcc.exe -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTM
ODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwr
apv -fno-strict-aliasing -mms-bitfields -s -O2 "-DVERSION=\"1.09\"" "-DXS_VERSIO
N=\"1.09\"" -I"C:\Perl64\lib\CORE" -I"C:\MinGW\x86_64-w64-mingw32\include" -o "l
ib\IO\Interface.o" "lib\IO\Interface.c"
lib\\IO\\Interface.xs:16:23: fatal error: sys/ioctl.h: No such file or directory

compilation terminated.
error building dll file from 'lib\IO\Interface.c' at C:/Perl64/site/lib/ExtUtils
/CBuilder/Platform/Windows.pm line 129.
  LDS/IO-Interface-1.09.tar.gz
  C:\Perl64\bin\perl.exe ./Build -- NOT OK


Satish Jadhav

Linas Vepstas

unread,
Aug 25, 2017, 11:10:35 AM8/25/17
to link-grammar
Hi Satish,

If you just want to work around this, just create an empty file C:\MinGW\x86_64-w64-mingw32\include\sys/ioctl.h  and it will probably work. 

ioctl.h is a dumping ground for random stuff and it sort-of makes sense it would be absent on windows.  If that doesn't work, then you'll have to hunt down a working version.

--linas

--
You received this message because you are subscribed to the Google Groups "link-grammar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to link-grammar+unsubscribe@googlegroups.com.
To post to this group, send email to link-g...@googlegroups.com.
Visit this group at https://groups.google.com/group/link-grammar.
To view this discussion on the web visit https://groups.google.com/d/msgid/link-grammar/dcbca6a6-e455-4c90-8f14-5a4d9c1dc480%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"The problem is not that artificial intelligence will get too smart and take over the world," computer scientist Pedro Domingos writes, "the problem is that it's too stupid and already has."
Reply all
Reply to author
Forward
0 new messages