- 论坛徽章:
- 0
|
向给位求助!
系统是Red Hat 6.4,perl版本是5.20,用cpan安装Lucene模块报错:
Reading '/home/xlwang/.cpan/Metadata'
Database was generated on Mon, 23 Jun 2014 07:06:17 GMT
Running install for module 'Lucene'
Checksum for /home/xlwang/.cpan/sources/authors/id/T/TB/TBUSCH/Lucene-0.18.tar.gz ok
Configuring T/TB/TBUSCH/Lucene-0.18.tar.gz with Makefile.PL
couldn't find clucene config file at Makefile.PL line 34.
Warning: No success on command[/home/xlwang/local/bin/perl Makefile.PL]
TBUSCH/Lucene-0.18.tar.gz
/home/xlwang/local/bin/perl Makefile.PL -- NOT OK
找不到clucene相关的文件,我用rpm -q查了一下系统,clucene-core和clucene-core-devel都在,然后我看了下makefile.pl,发现只搜索/usr/lib和/usr/local/lib。而clucene默认在/usr/lib64,于是我在makefile中加入了这个路径。
这时make过程会有警告:
cpp/utils.cpp: In function ‘wchar_t* SvToWChar(SV*)’:
cpp/utils.cpp:75: 警告:不建议使用‘UV Perl_utf8_to_uvuni(const U8*, STRLEN*)’(声明于 /home/xlwang/local/lib/perl5/5.20.0/x86_64-linux/CORE/proto.h:4825)
cpp/utils.cpp:75: 警告:不建议使用‘UV Perl_utf8_to_uvuni(const U8*, STRLEN*)’(声明于 /home/xlwang/local/lib/perl5/5.20.0/x86_64-linux/CORE/proto.h:4825)
./xs/Constants.xs: In function ‘void XS_Lucene_CLUCENE_VERSION(CV*)’:
./xs/Constants.xs:78: 警告:不建议使用从字符串常量到‘char*’的转换
而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] 错误 1
我不知道问题出在哪里,请大家帮我看看!谢谢!
|
|