4

使用 perlbrew 安装 perl-5.14.2 时遇到错误。

在 Ubuntu11.10(64 位)上,我尝试

$ perlbrew install perl-5.14.2 -Dperlibs='-lm -lc' -Dusethreads -Dplibpth=/usr/lib/x86_64-linux-gnu

并得到了错误

IO.xs: In function ‘XS_IO__Poll__poll’:
IO.xs:249:17: error: invalid application of ‘sizeof’ to incomplete type ‘struct pollfd’

我该如何解决这个错误?

4

1 回答 1

1

更改# include <poll.h># include <sys/poll.h>_<perlDownloadDir>/dist/IO/poll.h

详细解决方案在编译 Perl 5.12.1 (RHEL 5.5) 时出错

于 2016-06-06T04:34:12.580 回答