我安装perl模块lucene时出现一些错误!

我安装perl模块lucene时出现一些错误!

我在安装perl模块lucene时出现了一些错误:

[xlwang@localhost Lucene-0.18]$ make test

Running Mkbootstrap for Lucene ()
chmod 644 Lucene.bs
PERL_DL_NONLAZY=1 /home/xlwang/local/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t .. 1/1 
#   Failed test 'use Lucene;'
#   at t/00-load.t line 6.
#     Tried to use 'Lucene'.
#     Error:  Can't load '/home/xlwang/Lucene-0.18/blib/arch/auto/Lucene/Lucene.so' for module Lucene: /usr/lib/../lib64/libclucene.so.0: undefined symbol: pthread_mutexattr_settype at /home/xlwang/local/lib/perl5/5.20.0/x86_64-linux/DynaLoader.pm line 193.
#  at t/00-load.t line 6.
# Compilation failed in require at t/00-load.t line 6.
# BEGIN failed--compilation aborted at t/00-load.t line 6.
# Testing Lucene 0.18, Perl 5.020000, /home/xlwang/local/bin/perl
# Looks like you failed 1 test of 1.
t/00-load.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/00-load.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=1,  1 wallclock secs ( 0.04 usr  0.01 sys +  0.08 cusr  0.03 csys =  0.16 CPU)
Result: FAIL
Failed 1/1 test programs. 1/1 subtests failed.
make: *** [test_dynamic] error 1

我的操作系统是Redhat 6.4,Perl版本是5.20。

请帮我解决它。

相关内容