今の作り方


GeoIP C API

./configure
make && make install && ldconfig -v

GeoIPデータ

gunzip GeoIP.dat.gz
cp GeoIP.dat /usr/local/GeoIP

Webalizer

色々面倒くさいので

lang/webalizer_lang.japanese

をEUC-JPからUTF-8に変更する。
vimで開いて

:set fileencoding=utf-8
:wq

GeoIPのヘッダファイル名が小文字になっていて
includeに失敗するのでoutput.cの該当部を
#include <GeoIP.h>
に書き換える。
2.23-05では直っている。

./configure --enable-bz2 \
            --with-language=japanese \
            --enable-geoip \
            --with-geoip=/usr/local/include \
            --with-geoiplib=/usr/local/lib

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-07-25 (月) 09:49:34