analog for macos X 10.6 Snow Leopard
analog for macos X 10.6 Snow Leopard
0.改訂履歴
1.はじめに
このドキュメントでは,MacOS
Xで,Webサーバ(Apache)のアクセスログ集計ツールのanalogを導入する手順を説明する.今回は,コンパイルの手間を省く為,MacOS
X用のバイナリを入手する.
なお,使用しているOSは,MacOS X 10.6.xで稼働している.
2.モジュールの入手
- コマンドライン版のanalogは,以下のページからダウンロードできる.
- The Huntsville Macintosh Users Group
- HUMG:Analog
- 作業用ディレクトリを作成して,curlコマンドでダウンロードする.
sh-3.2# mkdir analog sh-3.2# cd analog/ sh-3.2# curl -O http://www.hmug.org/pub/MacOS_X/BSD/Administration/Log/analog/ analog-6.0-3-osx6-x86.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2098k 100 2098k 0 0 44871 0 0:00:47 0:00:47 --:--:-- 55633 sh-3.2#
|
sh-3.2# ls -la total 4200 drwxr-xr-x 3 root admin 102 Aug 24 14:24 . drwxr-xr-x 5 server admin 170 Aug 24 14:24 .. -rw-r--r-- 1 root admin 2149193 Aug 24 14:25 analog-6.0-3-osx6-x86.tar.gz sh-3.2#
|
sh-3.2# tar xfz analog-6.0-3-osx6-x86.tar.gz sh-3.2# cd analog-6.0 sh-3.2# ls -la total 1376 drwxr-xr-x 21 server admin 714 Oct 10 2009 . drwxr-xr-x 4 root admin 136 Aug 24 14:35 .. -rw-r--r-- 1 server admin 19563 Dec 19 2004 Licence.txt -rw-r--r-- 1 server admin 254 Dec 19 2004 Makefile -rw-r--r-- 1 server admin 292 Oct 10 2009 README.MacOS_X.html -rw-r--r-- 1 server admin 108 Dec 19 2004 README.txt -rwxr-xr-x 1 server admin 610856 Oct 10 2009 analog -rw-r--r-- 1 server admin 0 Oct 10 2009 analog-6.0-3-osx6-x86.dep -rw-r--r-- 1 server admin 2970 Dec 19 2004 analog-data.dtd -rw-r--r-- 1 server staff 3830 Oct 10 2009 analog.cfg -rw-r--r-- 1 server admin 8975 Dec 19 2004 analog.man -rw-r--r-- 1 server admin 8292 Dec 19 2004 anlgform.html -rwxr-xr-x 1 server admin 7993 Dec 19 2004 anlgform.pl drwxr-xr-x 68 server admin 2312 Dec 19 2004 docs drwxr-xr-x 12 server admin 408 Dec 19 2004 examples drwxr-xr-x 12 server admin 408 Dec 19 2004 how-to drwxr-xr-x 137 server admin 4658 Dec 19 2004 images -rwxr-xr-x 1 server admin 1420 Oct 10 2009 install.sh drwxr-xr-x 168 server admin 5712 Dec 19 2004 lang -rw-r--r-- 1 server admin 8420 Dec 19 2004 logfile.log drwxr-xr-x 66 server admin 2244 Oct 10 2009 src sh-3.2#
|
- install.shを実行する.この時にroot権限が必要.
sh-3.2# sudo ./install.sh Creating /usr/local/etc... Creating /usr/local/analog... Copying analog... Linking analog... Copying analog.cfg... Copying images... Copying language files... Creating /Library/WebServer/Documents/analog/docs... Creating /Library/WebServer/Documents/analog/how-to... Creating /usr/local/man/man1... Copying docs... Copying how-to... Copying man file... sh-3.2#
|
sh-3.2# ls -la /usr/local/etc/ total 8 drwxr-xr-x 3 root wheel 102 Aug 24 14:37 . drwxr-xr-x 14 root wheel 476 Aug 24 14:37 .. -rw-r--r-- 1 root wheel 3830 Aug 24 14:37 analog.cfg sh-3.2# ls -laR /usr/local/analog/ total 1200 drwxr-xr-x 4 root wheel 136 Aug 24 14:37 . drwxr-xr-x 14 root wheel 476 Aug 24 14:37 .. -rwxr-xr-x 1 root wheel 610856 Aug 24 14:37 analog drwxr-xr-x 168 root wheel 5712 Aug 24 14:37 lang
/usr/local/analog//lang: total 3848 drwxr-xr-x 168 root wheel 5712 Aug 24 14:37 . drwxr-xr-x 4 root wheel 136 Aug 24 14:37 .. -rw-r--r-- 1 root wheel 1056 Aug 24 14:37 README.txt -rw-r--r-- 1 root wheel 13019 Aug 24 14:37 am.lng -rw-r--r-- 1 root wheel 5166 Aug 24 14:37 amdom.tab -rw-r--r-- 1 root wheel 13969 Aug 24 14:37 ba.lng -rw-r--r-- 1 root wheel 14144 Aug 24 14:37 baq.lng -rw-r--r-- 1 root wheel 13392 Aug 24 14:37 bg.lng -rw-r--r-- 1 root wheel 4589 Aug 24 14:37 bgdesc.txt -rw-r--r-- 1 root wheel 5791 Aug 24 14:37 bgdom.tab -rw-r--r-- 1 root wheel 13386 Aug 24 14:37 bgm.lng -rw-r--r-- 1 root wheel 4583 Aug 24 14:37 bgmdesc.txt -rw-r--r-- 1 root wheel 5790 Aug 24 14:37 bgmdom.tab -rw-r--r-- 1 root wheel 14172 Aug 24 14:37 br.lng -rw-r--r-- 1 root wheel 14169 Aug 24 14:37 bra.lng -rw-r--r-- 1 root wheel 5328 Aug 24 14:37 bradesc.txt -rw-r--r-- 1 root wheel 5059 Aug 24 14:37 bradom.tab -rw-r--r-- 1 root wheel 5328 Aug 24 14:37 brdesc.txt -rw-r--r-- 1 root wheel 5059 Aug 24 14:37 brdom.tab -rw-r--r-- 1 root wheel 14190 Aug 24 14:37 cat.lng -rw-r--r-- 1 root wheel 14197 Aug 24 14:37 cata.lng -rw-r--r-- 1 root wheel 5174 Aug 24 14:37 catadom.tab -rw-r--r-- 1 root wheel 5174 Aug 24 14:37 catdom.tab -rw-r--r-- 1 root wheel 10477 Aug 24 14:37 cn.lng -rw-r--r-- 1 root wheel 3151 Aug 24 14:37 cndesc.txt -rw-r--r-- 1 root wheel 7723 Aug 24 14:37 cndom.tab -rw-r--r-- 1 root wheel 13608 Aug 24 14:37 cz.lng -rw-r--r-- 1 root wheel 13610 Aug 24 14:37 cz1.lng -rw-r--r-- 1 root wheel 13606 Aug 24 14:37 cz1a.lng -rw-r--r-- 1 root wheel 13606 Aug 24 14:37 cza.lng -rw-r--r-- 1 root wheel 14129 Aug 24 14:37 de.lng -rw-r--r-- 1 root wheel 14178 Aug 24 14:37 dea.lng -rw-r--r-- 1 root wheel 4759 Aug 24 14:37 deadom.tab -rw-r--r-- 1 root wheel 4730 Aug 24 14:37 dedom.tab -rw-r--r-- 1 root wheel 7734 Aug 24 14:37 deform.html -rw-r--r-- 1 root wheel 13210 Aug 24 14:37 dk.lng -rw-r--r-- 1 root wheel 13301 Aug 24 14:37 dka.lng -rw-r--r-- 1 root wheel 14749 Aug 24 14:37 es.lng -rw-r--r-- 1 root wheel 14747 Aug 24 14:37 esa.lng -rw-r--r-- 1 root wheel 4802 Aug 24 14:37 esadesc.txt -rw-r--r-- 1 root wheel 4951 Aug 24 14:37 esadom.tab -rw-r--r-- 1 root wheel 4802 Aug 24 14:37 esdesc.txt -rw-r--r-- 1 root wheel 4951 Aug 24 14:37 esdom.tab -rw-r--r-- 1 root wheel 9835 Aug 24 14:37 esform.html -rw-r--r-- 1 root wheel 13563 Aug 24 14:37 fi.lng -rw-r--r-- 1 root wheel 13561 Aug 24 14:37 fia.lng -rw-r--r-- 1 root wheel 5150 Aug 24 14:37 fiadom.tab -rw-r--r-- 1 root wheel 5150 Aug 24 14:37 fidom.tab -rw-r--r-- 1 root wheel 14290 Aug 24 14:37 fr.lng -rw-r--r-- 1 root wheel 14288 Aug 24 14:37 fra.lng -rw-r--r-- 1 root wheel 4635 Aug 24 14:37 fradesc.txt -rw-r--r-- 1 root wheel 5014 Aug 24 14:37 fradom.tab -rw-r--r-- 1 root wheel 4635 Aug 24 14:37 frdesc.txt -rw-r--r-- 1 root wheel 5014 Aug 24 14:37 frdom.tab -rw-r--r-- 1 root wheel 9210 Aug 24 14:37 frform.html -rw-r--r-- 1 root wheel 14762 Aug 24 14:37 gr.lng -rw-r--r-- 1 root wheel 14944 Aug 24 14:37 gra.lng -rw-r--r-- 1 root wheel 13614 Aug 24 14:37 hr.lng -rw-r--r-- 1 root wheel 1703 Aug 24 14:37 hu.cfg -rw-r--r-- 1 root wheel 13784 Aug 24 14:37 hu.lng -rw-r--r-- 1 root wheel 5060 Aug 24 14:37 hudom.tab -rw-r--r-- 1 root wheel 13268 Aug 24 14:37 id.lng -rw-r--r-- 1 root wheel 13266 Aug 24 14:37 ida.lng -rw-r--r-- 1 root wheel 13158 Aug 24 14:37 is.lng -rw-r--r-- 1 root wheel 13171 Aug 24 14:37 isa.lng -rw-r--r-- 1 root wheel 13951 Aug 24 14:37 it.lng -rw-r--r-- 1 root wheel 13954 Aug 24 14:37 ita.lng -rw-r--r-- 1 root wheel 4797 Aug 24 14:37 itadesc.txt -rw-r--r-- 1 root wheel 4641 Aug 24 14:37 itadom.tab -rw-r--r-- 1 root wheel 4783 Aug 24 14:37 itdesc.txt -rw-r--r-- 1 root wheel 4638 Aug 24 14:37 itdom.tab -rw-r--r-- 1 root wheel 8579 Aug 24 14:37 itform.html -rw-r--r-- 1 root wheel 1804 Aug 24 14:37 jpe.cfg -rw-r--r-- 1 root wheel 12474 Aug 24 14:37 jpe.lng -rw-r--r-- 1 root wheel 4113 Aug 24 14:37 jpedesc.txt -rw-r--r-- 1 root wheel 5470 Aug 24 14:37 jpedom.tab -rw-r--r-- 1 root wheel 8746 Aug 24 14:37 jpeform.html -rw-r--r-- 1 root wheel 2176 Aug 24 14:37 jpj.cfg -rw-r--r-- 1 root wheel 15347 Aug 24 14:37 jpj.lng -rw-r--r-- 1 root wheel 4449 Aug 24 14:37 jpjdesc.txt -rw-r--r-- 1 root wheel 7114 Aug 24 14:37 jpjdom.tab -rw-r--r-- 1 root wheel 9639 Aug 24 14:37 jpjform.html -rw-r--r-- 1 root wheel 1805 Aug 24 14:37 jps.cfg -rw-r--r-- 1 root wheel 12477 Aug 24 14:37 jps.lng -rw-r--r-- 1 root wheel 4113 Aug 24 14:37 jpsdesc.txt -rw-r--r-- 1 root wheel 5470 Aug 24 14:37 jpsdom.tab -rw-r--r-- 1 root wheel 8750 Aug 24 14:37 jpsform.html -rw-r--r-- 1 root wheel 2014 Aug 24 14:37 jpu.cfg -rw-r--r-- 1 root wheel 14915 Aug 24 14:37 jpu.lng -rw-r--r-- 1 root wheel 5571 Aug 24 14:37 jpudesc.txt -rw-r--r-- 1 root wheel 6981 Aug 24 14:37 jpudom.tab -rw-r--r-- 1 root wheel 10151 Aug 24 14:37 jpuform.html -rw-r--r-- 1 root wheel 12389 Aug 24 14:37 kr.lng -rw-r--r-- 1 root wheel 14125 Aug 24 14:37 lt.lng -rw-r--r-- 1 root wheel 14304 Aug 24 14:37 lv.lng -rw-r--r-- 1 root wheel 14086 Aug 24 14:37 nl.lng -rw-r--r-- 1 root wheel 14084 Aug 24 14:37 nla.lng -rw-r--r-- 1 root wheel 4721 Aug 24 14:37 nladesc.txt -rw-r--r-- 1 root wheel 5264 Aug 24 14:37 nladom.tab -rw-r--r-- 1 root wheel 4721 Aug 24 14:37 nldesc.txt -rw-r--r-- 1 root wheel 5264 Aug 24 14:37 nldom.tab -rw-r--r-- 1 root wheel 13271 Aug 24 14:37 no.lng -rw-r--r-- 1 root wheel 13068 Aug 24 14:37 no2.lng -rw-r--r-- 1 root wheel 13066 Aug 24 14:37 no2a.lng -rw-r--r-- 1 root wheel 13269 Aug 24 14:37 noa.lng -rw-r--r-- 1 root wheel 13410 Aug 24 14:37 pl.lng -rw-r--r-- 1 root wheel 13406 Aug 24 14:37 pla.lng -rw-r--r-- 1 root wheel 5008 Aug 24 14:37 pladom.tab -rw-r--r-- 1 root wheel 5010 Aug 24 14:37 pldom.tab -rw-r--r-- 1 root wheel 13992 Aug 24 14:37 pt.lng -rw-r--r-- 1 root wheel 13992 Aug 24 14:37 pta.lng -rw-r--r-- 1 root wheel 4717 Aug 24 14:37 ptadesc.txt -rw-r--r-- 1 root wheel 5083 Aug 24 14:37 ptadom.tab -rw-r--r-- 1 root wheel 4717 Aug 24 14:37 ptdesc.txt -rw-r--r-- 1 root wheel 5083 Aug 24 14:37 ptdom.tab -rw-r--r-- 1 root wheel 13264 Aug 24 14:37 ro.lng -rw-r--r-- 1 root wheel 4866 Aug 24 14:37 rodom.tab -rw-r--r-- 1 root wheel 13843 Aug 24 14:37 ru.lng -rw-r--r-- 1 root wheel 13911 Aug 24 14:37 ru1.lng -rw-r--r-- 1 root wheel 4447 Aug 24 14:37 ru1desc.txt -rw-r--r-- 1 root wheel 5664 Aug 24 14:37 ru1dom.tab -rw-r--r-- 1 root wheel 4379 Aug 24 14:37 rudesc.txt -rw-r--r-- 1 root wheel 5597 Aug 24 14:37 rudom.tab -rw-r--r-- 1 root wheel 8688 Aug 24 14:37 ruform.html -rw-r--r-- 1 root wheel 12944 Aug 24 14:37 se.lng -rw-r--r-- 1 root wheel 13527 Aug 24 14:37 se2.lng -rw-r--r-- 1 root wheel 13775 Aug 24 14:37 se2a.lng -rw-r--r-- 1 root wheel 4559 Aug 24 14:37 se2adesc.txt -rw-r--r-- 1 root wheel 5138 Aug 24 14:37 se2adom.tab -rw-r--r-- 1 root wheel 4464 Aug 24 14:37 se2desc.txt -rw-r--r-- 1 root wheel 5099 Aug 24 14:37 se2dom.tab -rw-r--r-- 1 root wheel 13011 Aug 24 14:37 sea.lng -rw-r--r-- 1 root wheel 5138 Aug 24 14:37 seadom.tab -rw-r--r-- 1 root wheel 5099 Aug 24 14:37 sedom.tab -rw-r--r-- 1 root wheel 13726 Aug 24 14:37 si.lng -rw-r--r-- 1 root wheel 13728 Aug 24 14:37 si1.lng -rw-r--r-- 1 root wheel 13456 Aug 24 14:37 sk.lng -rw-r--r-- 1 root wheel 13458 Aug 24 14:37 sk1.lng -rw-r--r-- 1 root wheel 13461 Aug 24 14:37 sk1a.lng -rw-r--r-- 1 root wheel 4689 Aug 24 14:37 sk1adesc.txt -rw-r--r-- 1 root wheel 5145 Aug 24 14:37 sk1adom.tab -rw-r--r-- 1 root wheel 4693 Aug 24 14:37 sk1desc.txt -rw-r--r-- 1 root wheel 5149 Aug 24 14:37 sk1dom.tab -rw-r--r-- 1 root wheel 13461 Aug 24 14:37 ska.lng -rw-r--r-- 1 root wheel 4689 Aug 24 14:37 skadesc.txt -rw-r--r-- 1 root wheel 5145 Aug 24 14:37 skadom.tab -rw-r--r-- 1 root wheel 4691 Aug 24 14:37 skdesc.txt -rw-r--r-- 1 root wheel 5147 Aug 24 14:37 skdom.tab -rw-r--r-- 1 root wheel 13162 Aug 24 14:37 tr.lng -rw-r--r-- 1 root wheel 11056 Aug 24 14:37 tw.lng -rw-r--r-- 1 root wheel 3151 Aug 24 14:37 twdesc.txt -rw-r--r-- 1 root wheel 7466 Aug 24 14:37 twdom.tab -rw-r--r-- 1 root wheel 13065 Aug 24 14:37 ua.lng -rw-r--r-- 1 root wheel 4447 Aug 24 14:37 uadesc.txt -rw-r--r-- 1 root wheel 13029 Aug 24 14:37 uk.lng -rw-r--r-- 1 root wheel 12978 Aug 24 14:37 uk12.lng -rw-r--r-- 1 root wheel 13027 Aug 24 14:37 uka.lng -rw-r--r-- 1 root wheel 4308 Aug 24 14:37 ukdesc.txt -rw-r--r-- 1 root wheel 5264 Aug 24 14:37 ukdom.tab -rw-r--r-- 1 root wheel 12994 Aug 24 14:37 us.lng -rw-r--r-- 1 root wheel 12946 Aug 24 14:37 us24.lng -rw-r--r-- 1 root wheel 12992 Aug 24 14:37 usa.lng -rw-r--r-- 1 root wheel 4308 Aug 24 14:37 usdesc.txt -rw-r--r-- 1 root wheel 5260 Aug 24 14:37 usdom.tab -rw-r--r-- 1 root wheel 8220 Aug 24 14:37 usform.html -rw-r--r-- 1 root wheel 13712 Aug 24 14:37 yu.lng -rw-r--r-- 1 root wheel 13709 Aug 24 14:37 yua.lng -rw-r--r-- 1 root wheel 4991 Aug 24 14:37 yudom.tab sh-3.2#
|
sh-3.2# ls -la /usr/local/bin/analog lrwxr-xr-x 1 root wheel 24 Aug 24 14:37 /usr/local/bin/analog -> /usr/local/analog/analog sh-3.2#
|