Perl Event :: Lib安装失败了OSX 10.8中的所有测试

时间:2013-06-01 00:53:42

标签: perl cpan libevent

我正在运行 Mac OSX 10.8.3 ;我用自制软件安装了 libevent 2.0.21 (通用);我使用 perlbrew 管理私有 Perl 5.16 环境。我在安装CPAN模块Event :: Lib时遇到问题 - 具体来说,每次测试都失败了。

当我强制安装时, perl -e'使用Event :: Lib;'段错误。

我怀疑这与libevent安装有关:在附加的日志中,有关于检查libevent是否存在时找不到目录的警告,但没有明确说明找不到libevent。

This描述了类似的声音问题,但解决方案涉及将libevent编译为通用,我已经尝试过了。

有什么建议吗?安装日志如下。

~  cpanm --reinstall Event::Lib

--> Working on Event::Lib
Fetching http://www.cpan.org/authors/id/V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz ... OK
Configuring Event-Lib-1.03 ... OK
Building and testing Event-Lib-1.03 ... FAIL
! Installing Event::Lib failed. See /Users/chap/.cpanm/build.log for details.

~  cat .cpanm/build.log 

cpanm (App::cpanminus) 1.5018 on perl 5.016001 built for darwin-2level
Work directory is /Users/chap/.cpanm/work/1370047478.40810
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Event::Lib on cpanmetadb ...
--> Working on Event::Lib
Fetching http://www.cpan.org/authors/id/V/VP/VPARSEVAL/Event-Lib-1.03.tar.gz
-> OK
Unpacking Event-Lib-1.03.tar.gz
Entering Event-Lib-1.03
Checking configure dependencies from META.yml
Configuring Event-Lib-1.03
Running Makefile.PL
Checking existance of libevent...ld: warning: directory not found for option '-L/sw/lib'
ld: warning: directory not found for option '-L/opt/local/lib'
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
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.63_02)
Building and testing Event-Lib-1.03
cp Lib/Event/Lib.pm blib/lib/Event/Lib.pm
Skip blib/lib/Event/Lib.pm (unchanged)
/Users/chap/perl5/perlbrew/perls/perl-5.16.1/bin/perl /Users/chap/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1/ExtUtils/xsubpp  -typemap /Users/chap/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/ExtUtils/typemap -typemap typemap  Lib.xs > Lib.xsc && mv Lib.xsc Lib.c
cc -c   -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include  -O3   -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\"  "-I/Users/chap/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/darwin-2level/CORE"  -DHAVE_CONFIG_H -DHAVE_LOG_CALLBACKS -DHAVE_PRIORITIES  Lib.c
Running Mkbootstrap for Event::Lib ()
chmod 644 Lib.bs
rm -f blib/arch/auto/Event/Lib/Lib.bundle
LD_RUN_PATH="/usr/local/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector Lib.o  -o blib/arch/auto/Event/Lib/Lib.bundle   \
       -levent -lm      \

chmod 755 blib/arch/auto/Event/Lib/Lib.bundle
cp Lib.bs blib/arch/auto/Event/Lib/Lib.bs
chmod 644 blib/arch/auto/Event/Lib/Lib.bs
Manifying blib/man3/Event::Lib::Event::Lib.3
Manifying blib/man3/Event::Lib.3
PERL_DL_NONLAZY=1 /Users/chap/perl5/perlbrew/perls/perl-5.16.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_pod.t ....................... ok
t/00_pod_coverage.t .............. ok
t/01_event-lib.t ................. 
Failed 2/2 subtests 
t/10_event.t ..................... 

[*** snip ***]

t/62_events_readded.t ............ 
No subtests run 
t/63_events_readded.t ............ 
No subtests run 
t/64_pending_events_destroyed.t .. 
No subtests run 
t/65_stress_no_clone.t ........... 
No subtests run 
t/70_misc.t ...................... 
Failed 4/4 subtests 
t/71_misc.t ...................... 
Failed 2/2 subtests 
t/72_misc.t ...................... 
Failed 1/1 subtests 
t/73_misc.t ...................... 
Failed 26/26 subtests 
t/80_processes.t ................. 
No subtests run 
t/90_leak.t ...................... 
No subtests run 
t/91_leak.t ...................... 
No subtests run 
t/92_leak.t ...................... 
No subtests run 
t/93_leak.t ...................... 
No subtests run 

Test Summary Report
-------------------
t/01_event-lib.t               (Wstat: 11 Tests: 0 Failed: 0)
  Non-zero wait status: 11
  Parse errors: Bad plan.  You planned 2 tests but ran 0.
t/10_event.t                   (Wstat: 11 Tests: 0 Failed: 0)
  Non-zero wait status: 11
  Parse errors: Bad plan.  You planned 2 tests but ran 0.

[*** snip ***]

t/93_leak.t                    (Wstat: 11 Tests: 0 Failed: 0)
  Non-zero wait status: 11
  Parse errors: No plan found in TAP output
Files=36, Tests=2,  6 wallclock secs ( 0.10 usr  0.06 sys +  0.59 cusr  0.11 csys =  0.86 CPU)
Result: FAIL
Failed 34/36 test programs. 0/2 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing Event::Lib failed. See /Users/chap/.cpanm/build.log for details.
~  

1 个答案:

答案 0 :(得分:2)