Namazu-users-ja(旧)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undefined symbol "_nl_msg_cat_cntr" (Search::Namazu)



杉田@北大図書館と申します。

Search::Namazuをぜひぜひ使用したいと思い、試しているのですが、
Subjectに書きましたエラーメッセージが出て、検索がされません。
これはSearch::Namazuの導入に失敗しているのでしょうか。
というか導入手順はこれでよいんでしょうか。
なにかわかることあれば助言お願いいたします_o_

▼環境

os FreeBSD 4.1-RELEASE
namazu 2.0.5
perl 5.005_03

▼やったこと

namazu-2.0.5配布物を/usr/home/sugita/src/namazuに展開。
./configure ; make、suして make install

cvs -d :pserver:guest@xxxxxxxxxxxxxx:/storage/cvsroot login
cvs -d :pserver:guest@xxxxxxxxxxxxxx:/storage/cvsroot co namazu/Search-Namazu
手元に現れたnamazuディレクトリ内のSearch-Namazu、CVSを
/usr/home/sugita/src/namazu/Search-Namazu
/usr/home/sugita/src/namazu/CVS
に置いて、

$ pwd
/usr/home/sugita/src/namazu/Search-Namazu

$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: -L../nmz/.libs changed to -L/usr/home/sugita/src/namazu/Search-Namazu/../nmz/.libs
Writing Makefile for Search::Namazu

$ make
mkdir blib
mkdir blib/lib
mkdir blib/lib/Search
cp Namazu.pm blib/lib/Search/Namazu.pm
/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 /usr/libdata/perl/5.00503/ExtUtils/xsubpp  -typemap /usr/libdata/perl/5.00503/ExtUtils/typemap Namazu.xs >xstmp.c && mv xstmp.c Namazu.c
cc -c -I../nmz       -DVERSION=\"0.11\"  -DXS_VERSION=\"0.11\" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE  Namazu.c
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Search
mkdir blib/arch/auto/Search/Namazu
Running Mkbootstrap for Search::Namazu ()
chmod 644 Namazu.bs
cc -o blib/arch/auto/Search/Namazu/Namazu.so  -Wl,-E -shared -lperl -lm Namazu.o    -L/usr/home/sugita/src/namazu/Search-Namazu/../nmz/.libs -lnmz 
chmod 755 blib/arch/auto/Search/Namazu/Namazu.so
cp Namazu.bs blib/arch/auto/Search/Namazu/Namazu.bs
chmod 644 blib/arch/auto/Search/Namazu/Namazu.bs
mkdir blib/lib/auto/Search
mkdir blib/lib/auto/Search/Namazu
mkdir blib/man3
Manifying blib/man3/Search::Namazu.3

$ su

# make install
Installing /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Search/Namazu/Namazu.so
Installing /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Search/Namazu/Namazu.bs
Files found in blib/arch --> Installing files in blib/lib into architecture dependend library tree!
Installing /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Search/Namazu.pm
Installing /usr/local/lib/perl5/5.00503/man/man3/Search::Namazu.3
Writing /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Search/Namazu/.packlist
Appending installation info to /usr/libdata/perl/5.00503/mach/perllocal.pod

…で、/usr/home/sugita/namazu/index以下にインデックスを作成

[Base]
Date:                Mon Nov  6 13:19:12 2000
Added Documents:     139
Size (bytes):        732,099
Total Documents:     139
Added Keywords:      2,309
Total Keywords:      2,309
Wakati:              module_chasen -j -F '%m '
Time (sec):          88
File/Sec:            1.58
System:              freebsd
Perl:                5.00503
Namazu:              2.0.5

▼できること(コマンドラインのnamazuで検索)

$ pwd
/usr/home/sugita/namazu

$ ls
./          ../         .namazurc   index/      test.pl*

$ cat .namazurc 
# This is a Namazu configuration file for namazu or namazu.cgi.
Index   /usr/home/sugita/namazu
Template        /usr/home/sugita/namazu/index
#Replace        don't   replace
#Logging       off
Lang    ja
#Scoring       tfidf
#EmphasisTags  "<strong class=\"keyword\">"   "</strong>"

$ namazu -s northern index

Results:

References:  [ northern: 1 ] 

 Total 1 documents matching your query.

1. title (score: 1)
/usr/home/sugita/real/location/matched.html (6,556 bytes)

Current List: 1 - 1

▼できないこと(Search::Namazuで検索)

$ which perl
/usr/bin/perl

$ cat test.pl
#!/usr/bin/perl

use Search::Namazu;

@hlists = Search::Namazu::Search(index => 'index', query => 'northern');

foreach my $hlist (@hlists) {
  print ($self->score, $self->uri, $self->date, $self->rank);
}

$ ./test.pl
Can't load '/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Search/Namazu/Namazu.so' for module Search::Namazu: /usr/local/lib/libnmz.so.4: Undefined symbol "_nl_msg_cat_cntr" at /usr/libdata/perl/5.00503/DynaLoader.pm line 169.

 at ./test.pl line 3
BEGIN failed--compilation aborted at ./test.pl line 3.

$ perl -MSearch::Namazu -e ''
Can't load '/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Search/Namazu/Namazu.so' for module Search::Namazu: /usr/local/lib/libnmz.so.4: Undefined symbol "_nl_msg_cat_cntr" at /usr/libdata/perl/5.00503/DynaLoader.pm line 169.

 at -e line 0
BEGIN failed--compilation aborted.

よろしくお願いいたします。

-- 
杉田茂樹 <sugita@xxxxxxxxxxxxxxxxx>
北海道大学附属図書館情報システム課目録情報掛
電話 (011)716-2111 内線3618 ファクシミリ (011)706-4099