LXRインストール
http://sourceforge.net/projects/lxrからlxr-0.3.tar.gzをダウンロードする。
まず、解凍する。
|
$ gzip -cd lxr-0.3.tar.gz
| tar xvf -
|
解凍すると、lxr-0.3ディレクトリが作られるので、そこに移動する。
|
$ cd lxr-0.3
|
Makefileを編集する。
| $ vi Makefile # Makefile for installation and configuration of LXR # The location of your perl5 binary # End of configuration parameters config: $(CGISCRIPTS) $(PERLMODULES) genxref $(CGISCRIPTS) genxref: %: %.in
clean: |
INSTALLPREFIX/http/lxr.confの作成・編集
|
$ vi lxr.conf
# Configuration file. # Define typed variable "v", read valueset from file. # Define typed variable "a". First value is default. # Define the base url for the LXR files. # These are the templates for the HTML heading, directory listing and # The source is here. # "#include <foo.h>" is mapped to this directory (in
the LXR source # The database files go here. # Glimpse can be found here. # The power of regexps. This is pretty Linux-specific, but quite |
INSTALLPREFIX/http/.htaccessの編集
search、source、ident、diffをcgiとして実行できるようにするため
|
$ vi .htaccess
以下を追記する <Files ~ (search|source|ident|diff)$> SetHandler cgi-script </Files> |
identifierデータベース作成
lxr.confで編集したdbdirへ移動する
|
$ cd INSTALLPREFIX/source/kernel-x.x.x
$ INSTALLPREFIX/bin/genxref INSTALLPREFIX/source/kernel-x.x.x |
Glimpseデータベース作成。Glimpseのインストール
|
# glimpseindex -H . /export/raid0/apache/htdocs/lxr/source/kernel-x.x.x -rw------- 1 root other 39284 Jul 7 12:29 .glimpse_filenames # chmod 644 .gllimpse* |