在我使用的perl脚本中:
require 'sys/ioctl.ph'
和脚本:perl scriptname.pl
但是当我使用PAR-PACKER时,这段代码:pp scriptname.pl
之后用这个命令运行脚本:
chmod 775 a.out
./a.out
脚本无效,我收到了这个错误:
Can't locate bits/wordsize.ph in @INC (did you run h2ph?) (@INC contains: /root/tmp/par-726f6f74/cache-4fc12ed2f5bed3251d445007492cfc2c26ef7785/inc/lib /root/tmp/par-726f6f74/cache-4fc12ed2f5bed3251d445007492cfc2c26ef7785/inc CODE(0x14f3860) CODE(0x14f3b00)) at sys/cdefs.ph line 318.
Compilation failed in require at features.ph line 203.
Compilation failed in require at sys/ioctl.ph line 7.
Compilation failed in require at script/scriptname.pl line 6.
操作系统是CentOS 6.7 x86_64,perl是v5.10.1
我该如何解决这个问题?
感谢