http://nlpwww.nict.go.jp/wn-ja/data/WordNet-Multi-0.1.tar.gz
からWordNet-Multi-0.1.tar.gzをダウンロード
↓
解凍
# tar xvzf WordNet-Multi-0.1.tar.gz
↓
移動
# cd WordNet-Multi-0.1
↓
# perl Makefile.PL PREFIX=Writing Makefile for WordNet::Multi
ng Makefile for WordNet::Multi
Checking if your kit is complete...
Looks good
Writing Makefile for WordNet::Multi
↓
# make
無問題# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/WordNet-Multi.t .. 1/16 install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: /home/user/install/WordNet-Multi-0.1/blib/lib /home/user/install/WordNet-Multi-0.1/blib/arch /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 6) line 3.
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
at /home/user/install/WordNet-Multi-0.1/blib/lib/WordNet/Multi.pm line 52
# Looks like you planned 16 tests but only ran 1.
# Looks like your test died just after 1.
t/WordNet-Multi.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 15/16 subtests
↓
強行突破
#make install
↓
ダメ
↓
「SQLiteインストールしよう!」
cpan > install DBD::SQLite
↓
もう一度
make
make test
make install
を二回繰り返すとなぜかうまくいった。
Installing /usr/local/share/perl/5.10.0/WordNet/Multi.pm
Installing /usr/local/share/perl/5.10.0/auto/WordNet/Multi/autosplit.ix
Installing /usr/local/man/man3/WordNet::Multi.3pm
Appending installation info to /usr/lib/perl/5.10/perllocal.pod
確認
# perl -e'use WordNet::Multi;'
で何も出力されなければOK
参考
「WordNet を perlにてサクラインターネットで使う (1)」
http://yamamotoplog.blog38.fc2.com/blog-entry-62.html