• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1117
  • Last Modified:

Unable to install EV perl module

I am trying to install perl's EV (event loop)  module through CPAN (CPAN> install EV) , but I get hundreds of error messages from CPAN, starting with:

...
Checking if your kit is complete...
Looks good
Writing Makefile for EV
cp EV/MakeMaker.pm blib/lib/EV/MakeMaker.pm
cp libev/ev.pod blib/lib/EV/libev.pod
cp EV/EVAPI.h blib/lib/EV/EVAPI.h
cp EV.pm blib/lib/EV.pm
cp libev/ev.h blib/lib/EV/ev.h
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp  -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap  EV.xs > EV.xsc && mv EV.xsc EV.c
cc -c  -Ilibev -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"3.48\" -DXS_VERSION=\"3.48\" -fPIC "-I/usr/lib/perl/5.8/CORE"  -DEV_USE_MONOTONIC=1 -DEV_USE_REALTIME=1 -DEV_USE_SELECT=1 -DEV_USE_POLL=0 -DEV_USE_EPOLL=0 -DEV_USE_KQUEUE=0 -DEV_USE_PORT=0 -DEV_USE_INOTIFY=0 -DEV_USE_EVENTFD=0 EV.c
In file included from EV.xs:2:
/usr/lib/perl/5.8/CORE/perl.h:420:24: error: sys/types.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:451:19: error: ctype.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:463:23: error: locale.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:480:20: error: setjmp.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:486:26: error: sys/param.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:491:23: error: stdlib.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:496:23: error: unistd.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:776:23: error: string.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:925:27: error: netinet/in.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:929:26: error: arpa/inet.h: No such file or directory
/usr/lib/perl/5.8/CORE/perl.h:939:25: error: sys/stat.h: No such file or directory
...


It seems Make is unable to find the required files. Is there any other way to install this module, or can the installer be fixed?
0
innovideo
Asked:
innovideo
  • 2
1 Solution
 
Adam314Commented:
It looks like you are missing the package that contains the development headers.  You will need to install this package first (using your distro's package manager), then try installing the perl module again.

On debian based systems, this would be the libc6-dev package.

What distro are you running?
0
 
innovideoAuthor Commented:
That's it! The libc6-dev library was missing.
0
 
innovideoAuthor Commented:
Thank you!. Your solution worked!  The problem was that my ubuntu Feisty Fawn did not have the libc6-dev development library installed by defaut. I installed it and everything was OK. I exactly reproduce the procedure below  to help others with the same problem:


FIrst, install the development libraries with:
 
     apt-get install libc6-dev
 
 then enter CPAN with:
 
    sudo cpan
 
an last, in CPAN::
 
   > install EV
 
and that's all.

Open in new window

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now