无法使用perlbrew安装perl

时间:2012-03-20 02:42:35

标签: perlbrew

使用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’

我该如何解决这个错误?

1 个答案:

答案 0 :(得分:0)

# include <poll.h>

中将# include <sys/poll.h>更改为<perlDownloadDir>/dist/IO/poll.h

详细解决方案位于Make error when compiling Perl 5.12.1 (RHEL 5.5)

相关问题