Solved

Unable to install EV perl module

Posted on 2008-10-30
3
1,045 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

895 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

17 Experts available now in Live!

Get 1:1 Help Now