KOZAKI Tsuneaki
KOZAKI Tsuneaki

Reputation: 41

Can't install perl with perlbrew

I encountered the error when install perl-5.14.2 with perlbrew.

On Ubuntu11.10(64-bit), I try

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

and got the error

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

How can i solve this error?

Upvotes: 4

Views: 543

Answers (1)

Ken
Ken

Reputation: 4163

Change # include <poll.h> to # include <sys/poll.h> in <perlDownloadDir>/dist/IO/poll.h

Detail solution is in Make error when compiling Perl 5.12.1 (RHEL 5.5)

Upvotes: 1

Related Questions