Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Event::Lib fails install test (cpan -t)

by Ray Smith (Beadle)
on Aug 29, 2007 at 16:05 UTC ( [id://635832]=perlquestion: print w/replies, xml ) Need Help??

Ray Smith has asked for the wisdom of the Perl Monks concerning the following question:

I am having difficulties installing the Event::Lib module. I user "cpan -t Event::Lib" to test. Can anyone give me a suggestion as to how to proceed? Thanks The bdginning of my output looks as follows:
CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Wed, 29 Aug 2007 10:36:48 GMT Running test for module Event::Lib Running make for V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/V/VP/VPARSEVAL/Event-Lib-1 +.03.tar.gz ok Scanning cache /root/.cpan/build for sizes Event-Lib-1.03/ Event-Lib-1.03/Changes Event-Lib-1.03/check.c Event-Lib-1.03/const-xs.inc Event-Lib-1.03/dhash.h Event-Lib-1.03/event_debug.h Event-Lib-1.03/fallback/ Event-Lib-1.03/fallback/const-c.inc Event-Lib-1.03/fallback/const-xs.inc Event-Lib-1.03/lib/ Event-Lib-1.03/lib/Event/ Event-Lib-1.03/lib/Event/Lib.pm Event-Lib-1.03/Lib.xs Event-Lib-1.03/Makefile.PL Event-Lib-1.03/MANIFEST Event-Lib-1.03/META.yml Event-Lib-1.03/ppport.h Event-Lib-1.03/README Event-Lib-1.03/scripts/ Event-Lib-1.03/scripts/client.pl Event-Lib-1.03/scripts/eprof Event-Lib-1.03/scripts/server.pl Event-Lib-1.03/t/ Event-Lib-1.03/t/00_pod.t Event-Lib-1.03/t/00_pod_coverage.t Event-Lib-1.03/t/01_event-lib.t Event-Lib-1.03/t/10_event.t Event-Lib-1.03/t/20_signal.t Event-Lib-1.03/t/30_timer.t Event-Lib-1.03/t/31_timer_one.t Event-Lib-1.03/t/32_timer_timeout.t Event-Lib-1.03/t/40_exception.t Event-Lib-1.03/t/41_exception.t Event-Lib-1.03/t/42_exception.t Event-Lib-1.03/t/43_exception.t Event-Lib-1.03/t/44_exception.t Event-Lib-1.03/t/45_exception.t Event-Lib-1.03/t/46_exception.t Event-Lib-1.03/t/47_exception_flags.t Event-Lib-1.03/t/50_cleanup.t Event-Lib-1.03/t/51_cleanup_persistent.t Event-Lib-1.03/t/52_cleanup_readded.t Event-Lib-1.03/t/53_cleanup_undef.t Event-Lib-1.03/t/54_cleanup_reassign.t Event-Lib-1.03/t/60_event_as_arg.t Event-Lib-1.03/t/61_events_in_struct.t Event-Lib-1.03/t/62_events_readded.t Event-Lib-1.03/t/63_events_readded.t Event-Lib-1.03/t/64_pending_events_destroyed.t Event-Lib-1.03/t/65_stress_no_clone.t Event-Lib-1.03/t/70_misc.t Event-Lib-1.03/t/71_misc.t Event-Lib-1.03/t/72_misc.t Event-Lib-1.03/t/73_misc.t Event-Lib-1.03/t/80_processes.t Event-Lib-1.03/t/90_leak.t Event-Lib-1.03/t/91_leak.t Event-Lib-1.03/t/92_leak.t Event-Lib-1.03/t/93_leak.t Event-Lib-1.03/typemap Removing previously used /root/.cpan/build/Event-Lib-1.03 CPAN.pm: Going to build V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz Checking existance of libevent...yes Checking capabilities... event_set_log_callback...yes event_priority_init...yes Additional defines: -DHAVE_LOG_CALLBACKS -DHAVE_PRIORITIES Checking if your kit is complete... Looks good Writing Makefile for Event::Lib cp lib/Event/Lib.pm blib/lib/Event/Lib.pm /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/ +perl5/5.8.8/ExtUtils/typemap -typemap typemap Lib.xs > Lib.xsc && mv + Lib.xsc Lib.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdecla +ration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FI +LE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORT +IFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 + -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVER +SION=\"1.03\" -DXS_VERSION=\"1.03\" -fPIC "-I/usr/lib/perl5/5.8.8/i38 +6-linux-thread-multi/CORE" -DHAVE_CONFIG_H -DHAVE_LOG_CALLBACKS -DHA +VE_PRIORITIES Lib.c Lib.c: In function ‘XS_Event__Lib_event_get_method’: Lib.c:424: warning: unused variable ‘ix’ Lib.c: In function ‘XS_Event__Lib_event_get_version’: Lib.c:442: warning: unused variable ‘ix’ Running Mkbootstrap for Event::Lib () chmod 644 Lib.bs rm -f blib/arch/auto/Event/Lib/Lib.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - +fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=ge +neric -fasynchronous-unwind-tables -L/usr/local/lib Lib.o -o blib/ar +ch/auto/Event/Lib/Lib.so \ -levent -lm \ chmod 755 blib/arch/auto/Event/Lib/Lib.so cp Lib.bs blib/arch/auto/Event/Lib/Lib.bs chmod 644 blib/arch/auto/Event/Lib/Lib.bs Manifying blib/man3/Event::Lib.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_pod.........................skipped all skipped: Test::Pod not installed t/00_pod_coverage................skipped all skipped: Test::Pod::Coverage not installed t/01_event-lib...................Can't load '/root/.cpan/build/Event-L +ib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libev +ent-1.3d.so.1: cannot open shared object file: No such file or direct +ory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm lin +e 230. at t/01_event-lib.t line 10 Compilation failed in require at t/01_event-lib.t line 10. BEGIN failed--compilation aborted at t/01_event-lib.t line 10. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-2 Failed 2/2 tests, 0.00% okay t/10_event.......................Can't load '/root/.cpan/build/Event-L +ib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libev +ent-1.3d.so.1: cannot open shared object file: No such file or direct +ory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm lin +e 230. at t/10_event.t line 3 Compilation failed in require at t/10_event.t line 3. BEGIN failed--compilation aborted at t/10_event.t line 3. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-2 Failed 2/2 tests, 0.00% okay t/20_signal......................Can't load '/root/.cpan/build/Event-L +ib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libev +ent-1.3d.so.1: cannot open shared object file: No such file or direct +ory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm lin +e 230. at t/20_signal.t line 4 Compilation failed in require at t/20_signal.t line 4. BEGIN failed--compilation aborted at t/20_signal.t line 4. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-3 Failed 3/3 tests, 0.00% okay t/30_timer.......................Can't load '/root/.cpan/build/Event-L +ib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libev +ent-1.3d.so.1: cannot open shared object file: No such file or direct +ory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm lin +e 230. at t/30_timer.t line 4 Compilation failed in require at t/30_timer.t line 4. BEGIN failed--compilation aborted at t/30_timer.t line 4. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay t/31_timer_one...................Can't load '/root/.cpan/build/Event-L +ib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libev +ent-1.3d.so.1: cannot open shared object file: No such file or direct +ory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm lin +e 230. at t/31_timer_one.t line 4 Compilation failed in require at t/31_timer_one.t line 4. BEGIN failed--compilation aborted at t/31_timer_one.t line 4. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-9

Replies are listed 'Best First'.
Re: Event::Lib fails install test (cpan -t)
by chargrill (Parson) on Aug 29, 2007 at 16:22 UTC

    I tried running the tests on this module, but before I could even get there - I untar'd the tarball, then:

    $ perl Makefile.PL Checking existance of libevent...check.c:3:19: error: event.h: No such + file or directory no ******************************************* Couldn't find libevent which is required for this module. To obtain it, go to http://www.monkey.org/~provos/libevent/

    Have you made sure you have libevent installed?


    --chargrill
    s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
      Thanks for the reply. However, in looking at the CPAN install output I see the following which, to me, implies that libevent is present:
      ...
      CPAN.pm: Going to build V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz Checking existance of libevent...yes Checking capabilities... event_set_log_callback...yes event_priority_init...yes Additional defines: -DHAVE_LOG_CALLBACKS -DHAVE_PRIORITIES Checking if your kit is complete... Looks good
      ...
      Any suggestions are welcome.
Re: Event::Lib fails install test (cpan -t)
by liverpole (Monsignor) on Aug 30, 2007 at 15:42 UTC
    This is just a follow-up to explain how I got the Event::Lib module installed for Ray Smith (who is a coworker of mine).

    I noticed on his machine that he had installed libevent-1.3d into /usr/local/lib instead of /usr/lib, so I looked at the README file in /root/.cpan/build/Event-Lib-1.03, and found what looked to be a way to point to the /usr/local/lib directory instead:

    In case you have several libevents installed and you'd like to use the one in /usr/local/(lib|include): + perl Makefile.PL INC=-I/usr/local/include LIBS="-L/usr/local/lib -l +event" make make test make install

    Unfortunately, using the extra switches to Perl didn't seem to have any effect, the errors were the same as before.

    So I simply remade libevent, forcing the installation into /usr/lib, and that solved the problem -- his machine now successfully has Event::Lib installed.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
      Thanks for the help. Anybody know this manual change was necessary?
Re: Event::Lib fails install test (cpan -t)
by syphilis (Archbishop) on Aug 30, 2007 at 08:58 UTC
    Can't load '/root/.cpan/build/Event-Lib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libevent-1.3d.so.1: cannot open shared object file: No such file or directory

    '/root/.cpan/build/Event-Lib-1.03/blib/arch/auto/Event/Lib/Lib.so' can be found - but it can't be loaded because 'libevent-1.3d.so.1' can't be found. I'm not a *nix person, so I'm unsure of the fix. Is it simply a matter of running ldconfig (from the command line) as root ?

    Cheers,
    Rob
      Thanks Rob, '/root/.../Lib/Lib.so' is there. Not being to familiar my self, I just tried:
      ldconfig root/.cpan/build/Event-Lib-1.03/blib/arch/auto/Event/Lib/Lib +.so
      When re-running cpan -t Event::Lib, I still get the following:
      t/01_event-lib...................Can't load '/root/.cpan/build/Event-L +ib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libev +ent-1.3d.so.1: cannot open shared object file: No such file or direct +ory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm lin +e 230. at t/01_event-lib.t line 10
        Funny :) auto/Event/Lib/Lib.so can't find libevent-1.3d.so.1
Re: Event::Lib fails install test (cpan -t)
by Anonymous Monk on Aug 30, 2007 at 08:09 UTC
    Can't load '/root/.cpan/build/Event-Lib-1.03/blib/arch/auto/Event/Lib/Lib.so' for module Event::Lib: libevent-1.3d.so.1: cannot open shared object file: No such file or directory Try
    ldd blib/arch/auto/Event/Lib/Lib.so
      That's exactly right. The question is why do we get that missing library? I did install eventlib.
      From the cpan install:
      CPAN.pm: Going to build V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz Checking existance of libevent...yes Checking capabilities... event_set_log_callback...yes event_priority_init...yes Additional defines: -DHAVE_LOG_CALLBACKS -DHAVE_PRIORITIES
      I just don't quite know what I've done wrong here. I had some trouble installing eventlib, but after getting a new version that appeared to work. I thought I was home free. Thanks for the interest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://635832]
Approved by chargrill
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found