Solved

Unable to install EV perl module

Posted on 2008-10-30
3
1,038 Views
Last Modified: 2010-04-21
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
Comment
Question by:innovideo
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Adam314 earned 500 total points
ID: 22847533
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
 

Author Closing Comment

by:innovideo
ID: 31511936
That's it! The libc6-dev library was missing.
0
 

Author Comment

by:innovideo
ID: 22848635
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now