LXRインストール
http://sourceforge.net/projects/lxr
からlxr-0.3.tar.gzをダウンロードする.
まず,解凍する.
lxrのインストールの前に以下の3つがインストールされているべき
|
$ tar zxfv
lxr-0.3.tar.gz |
解凍すると, 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* ---versions--- ns-2.26 ns-allinone-2.26 との記述が必要なのか… http://www.cpan.org/modules/by-module/DB_File/ から DB_File-1.807.tar.gz をゲット. # tar zxfv db-4.1.25.tar.gz # ./configure --prefix=/opt/BerkeleyDB.4.1 # vi /etc/ld.so.conf # /sbin/ldconfig |
![]() |