Text::Chasen
Chasen1 で何も考えていないと次のようになってしまう
makoto@harry 14:39:25/990531(...src-harry/Text-ChaSen1-0.11)> perl Makefile.PL
Note (probably harmless): No library found for -lchasen
Writing Makefile for Text::ChaSen1
そのような時は chasen に戻って、次のように libchasen.a を入れてお
く
makoto@harry 14:42:12/990531(...chasen1.51/lib)> su
Password:
# cp libchasen.a /usr/pkg/lib
# ranlib -t /usr/pkg/lib/libchasen.a
makoto@harry 14:43:30/990531(...src-harry/Text-ChaSen1-0.11)> perl Makefile.PL
Writing Makefile for Text::ChaSen1
make
# make install
Installing /usr/pkg/lib/perl5/site_perl/powerpc-netbsd/./auto/Text/ChaSen1/ChaSen1.so
Installing /usr/pkg/lib/perl5/site_perl/powerpc-netbsd/./auto/Text/ChaSen1/ChaSen1.bs
Installing /usr/pkg/lib/perl5/site_perl/./Text/ChaSen1.pm
Installing /usr/pkg/lib/perl5/man/man3/./Text::ChaSen1.3
Writing /usr/pkg/lib/perl5/site_perl/powerpc-netbsd/auto/Text/ChaSen1/.packlist
Appending installation info to /usr/pkg/lib/perl5/powerpc-netbsd/5.00404/perllocal.pod
次のように動作確認をする。(これは失敗例)
makoto@harry 15:34:28/990531(/usr/src-harry)> perl -MText::ChaSen1 -e ''
Can't load '/usr/pkg/lib/perl5/site_perl/powerpc-netbsd/auto/Text/ChaSen1/ChaSen1.so' for module Text::ChaSen1: /usr/pkg/lib/perl5/site_perl/powerpc-netbsd/auto/Text/ChaSen1/ChaSen1.so: Unsupported relocation type 10 in non-PLT relocations
at -e line 0
BEGIN failed--compilation aborted.
ChaSen1 の中の libchasen.a を作る時に -fPIC を付けておく
正常な時には
perl -MText::ChaSen1 -e ''
で何も表示しない。
Last Update
19:53:39 03/12/08
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
Apache/2.4.62 (Unix) OpenSSL/3.0.12
(since 1999/05/31)