|
发表于 2003-11-19 14:34:22
|
显示全部楼层
回复: 终于搞定!
纠正一下:
经测试,在blurb.html中的<A HREF="http:source/">应改为<A HREF="./source">
最初由 Centrino 发表
我试了好多次,最后把楼主的方法略作修改,终于能舒舒服服地读代码了.
改动如下,是在lxr的安装上:
1)步中,应将安装目录设置为: /var/www/html/lxr(对redhat8.0而言).设为其它目录理论上也可以,只是我没有成功过.
3)中的设置相应变为:
修改$INSTALLPREFIX/http/lxr.conf :
baseurl : http://yourIP/lxr/http/
htmlhead: /var/www/html/lxr/http/template-head
htmltail: /var/www/html/lxr/http/template-tail
htmldir: /var/www/html/lxr/http/template-dir
sourceroot : /usr/src/linux # 假如对linux核心代码索引
#对我来讲是: /usr/src/linux-2.4.18-14
dbdir : /var/www/html/lxr/dbdir/ #dbdirk可任意起名,且位置任意
glimpsebin: /usr/bin/glimpse #可执行程序glimpse的位置
4)步我参照lxr的安装说明将 .htaccess的内容设为:
<Files ~ (search|source|ident|diff)$>
SetHandler cgi-script
</Files>
5)dbdir的位置当然也需改为/var/www/html/lxr/dbdir
最后在浏览器中键入http://myip/lxr/http/blurb.html 时,出现一个大概起说明作用的界面,里面有Browse the code的链接,不过我这儿该链接始终指向http:source/,根本访问不了.之后我把地址改为http://myip/lxr/http/source 终于OK! |
|