Cannot install perl with perlbrew

I encountered an error installing perl-5.14.2 with perlbrew.

On Ubuntu11.10 (64-bit), I'm trying

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

and got an 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?

+4
source share
1 answer

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

A detailed solution is in Make a mistake while compiling Perl 5.12.1 (RHEL 5.5)

0
source

Source: https://habr.com/ru/post/1402352/


All Articles