【问题标题】:Can't install perl with perlbrew无法使用 perlbrew 安装 perl
【发布时间】:2012-03-20 02:42:35
【问题描述】:

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

我该如何解决这个错误?

【问题讨论】:

  • 我遇到了同样的错误,但对我来说,问题实际上是一个错误的包含路径。 This answer 解决了我的问题。

标签: perlbrew


【解决方案1】:

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

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

【讨论】:

  • #include <poll.h> -> #include <sys/poll.h>
猜你喜欢
  • 2023-02-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-07
  • 1970-01-01
  • 2019-01-06
  • 1970-01-01
  • 2012-06-11
  • 2015-06-08
相关资源
最近更新 更多