Namazu¤ò»ô¤Ã¤Æ¤ß¤Þ¤·¤ç¤¦
±Â¤Ï¤ä¤é¤Ê¤¯¤Æ¤âÂç¾æÉפǤ¹

nkf¤Î¥¤¥ó¥¹¥È¡¼¥ë

Æþ¤Ã¤Æ¤¤¤ë¤«³Îǧ

$ nkf --version

¥á¡¼¥ë¤Î¥Ø¥Ã¥À¥Ç¥³¡¼¥É¤¹¤ë¤Ë¤Ï1.62°Ê¾å¤¬Íפë¤é¤·¤¤

nkf1.9¤ò»È¤Ã¤Æ¤¤¤ë¤È¥À¥á¤é¤·¤¤¤Ç¤¹1.7¤Ë¥Ð¡¼¥¸¥ç¥ó¥À¥¦¥ó¤â¤·¤¯¤Ï2.0.4°Ê¾å¤Ë¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¤·¤Þ¤·¤ç¤¦
http://www.namazu.org/FAQ.html#mojibake
http://sourceforge.jp/projects/nkf/files/?release_id=15302

# tar xvzf nkf206a.tar.gz
# cd nkf206
# make
# mv nkf /usr/local/bin

KAKASI¤Î¥¤¥ó¥¹¥È¡¼¥ë

¸¡º÷¤¹¤ë¤Ë¤ÏÆüËܸì¤ò¤ï¤«¤Á½ñ¤­(ñ¸ì¤ò¶õÇò¤Ç¶èÀÚ¤ë½ñ¤­Êý)¤¹¤ë¤Î¤ËɬÍ×
ChaSen¤Ç¤â¤Ç¤­¤ë¤¬KAKASI¤ò»È¤¤¤Þ¤¹

kakasi-2.3.4.tar.gz¤ò¥²¥Ã¥È
http://kakasi.namazu.org/

# tar xvzf kakasi-2.3.4.tar.gz
# cd kakasi-2.3.4
# ./configure
# make
# make install

Text::Kakasi¤Î¥¤¥ó¥¹¥È¡¼¥ë

KAKASI¤òPerl¤«¤éÍøÍѤǤ­¤ë¤è¤¦¤Ë¤¹¤ë¥â¥¸¥å¡¼¥ë
ľÀÜKAKASI¤ò»È¤¦¤è¤ê¹â®¤é¤·¤¤

Text-Kakasi-1.05.tar.gz¤ò¥²¥Ã¥È
http://www.daionet.gr.jp/~knok/kakasi/

# cd ../
# tar xvzf Text-Kakasi-1.05.tar.gz
# cd Text-Kakasi-1.05
# perl Makefile.PL
# make
# make install

Namazu¤Î¥¤¥ó¥¹¥È¡¼¥ë

namazu-2.0.17.tar.gz¤ò¥²¥Ã¥È
http://www.namazu.org/

# cd ../
# tar xvzf namazu-2.0.17.tar.gz
# cd namazu-2.0.17/File-MMagic
# perl Makefile.PL
# make
# make install
# cd ..
# ./configure
# make
# make install

¥¤¥ó¥Ç¥Ã¥¯¥¹¥Õ¥¡¥¤¥ë¤ÎºîÀ®

mknmz¤È¤¤¤¦Perl¥¹¥¯¥ê¥×¥È¤ò»È¤¤¤Þ¤¹
/home/usr/namazu/index ¤Ë /home/usr/public_html/files ¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¾ì¹ç
ͽ¤á¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®¤¬Í×

$ LANG="ja"
$ export LANG
$ PERL_BADLANG=0; export PERL_BADLANG
$ mknmz -O /home/usr/namazu/index /home/usr/public_html/files --indexing-lang=ja

2.0.6¤«¤é --indexing-lang=ja ¤È¤¤¤¦¥ª¥×¥·¥ç¥ó¤ò»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤Î¤Ç»ØÄꤹ¤ë¤È¹¬¤»¤Ë¤Ê¤ì¤ë¤«¤â

¼Â¹Ô¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼

¼ÂºÝ¤Ë¸¡º÷¤Ë»ÈÍѤ¹¤ënamazu.cgi¤ò¥³¥Ô¡¼¤¹¤ë

$ cp /usr/local/libexec/namazu.cgi /home/usr/public_html/files/

¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Î½àÈ÷

¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Ïmknmz¤ò¼Â¹Ô¤¹¤ë¤È½ñ¤­´¹¤¨¤é¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç¥¤¥ó¥Ç¥Ã¥¯¥¹¥Õ¥¡¥¤¥ë¤È¤ÏÊ̤ËÃÖ¤¤¤Æ¤ª¤¯¤Î¤¬µÈ
¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼¤¹¤ë

$ mkdir /home/usr/namazu/template
$ cp /usr/local/share/namazu/template/*.ja /home/usr/namazu/template

ÀßÄê¥Õ¥¡¥¤¥ë¤Î½àÈ÷

ÀßÄê¥Õ¥¡¥¤¥ë namazurc ¤ò¥³¥Ô¡¼¤¹¤ë

$ cp /usr/local/etc/namazu/namazurc-sample /home/usr/public_html/.namazurc
$ vi /home/usr/public_html/.namazurc
Index /home/usr/namazu/index

Template /home/usr/namazu/template

Replace /home/usr/public_html/ http://www.example.com/

Lang ja

cron¤ÇÄê´üŪ¤Ëindex¹¹¿·

$ vi /home/user/index-make.sh
#!/bin/bash
LANG="ja"
export LANG
PERL_BADLANG=0; export PERL_BADLANG
/usr/local/bin/mknmz -O /home/user/namazu/index /home/user/public_html/files -- indexing-lang=ja

ËèÆü¸áÁ°5»þ¤Ë¹¹¿·

$ crontab -e
0 5 * * * /home/user/index-make.sh

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:26