QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: lihuabo

为什么这个版块没有介绍lxr的文章呢?

[复制链接]
发表于 2003-5-27 21:29:19 | 显示全部楼层
[quote:0e5a4b11a9="lihuabo"]斑竹同志:我终于搞定了,看到了源代码。。。只是以同样的方法在另一位朋友的机子上安装却怎么也不成功。。最后我只好把问题归结于他的apache 上了。
还有个问题,要是在自己安装的apache 环境下安装lxr应该怎么做?[/quote]

cong! what is the problem on his pc? if u install the apache by uself, nothing special.
回复

使用道具 举报

发表于 2003-5-27 21:33:28 | 显示全部楼层
jjww, if u access .../source, and everything is fine, then u are almost succ. post u lxr.conf here. and make sure u baseurl: http://localhost/lxr/http/
this baseurl is used to generate all reference.
回复

使用道具 举报

发表于 2003-5-27 21:35:57 | 显示全部楼层
我的lxr.conf
variable: v, Version, [/var/www/html/lxr/source/versions], [/var/www/html/lxr/source/defversion]
variable: a, Architecture, (i386)
baseurl: http://10.0.177/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: /var/www/html/lxr/source/2.5.9/
srcrootname: Linux
incprefix: /include
dbdir: /var/www/html/lxr/source/2.5.9/
glimpsebin: /usr/bin/glimpse
map: /include/asm[^\/]*/ /include/asm-$a/
map: /arch/[^\/]+/ /arch/$a/
回复

使用道具 举报

发表于 2003-5-27 21:37:36 | 显示全部楼层
我在不行的情况下,将$v直接改为2.5.9的,和versions, defversion一样
回复

使用道具 举报

发表于 2003-5-27 21:58:33 | 显示全部楼层
u lxr.conf looks ok, so it is very strange,
if u know perl u will know that $v is 2.5.9 for u situation, so u need not change it.
回复

使用道具 举报

发表于 2003-5-28 09:37:13 | 显示全部楼层
我发现了:
在http://10.1.0.177/lxr/http/source/这一页,比如说我点击fs,应该进入:
http://10.0.177/lxr/http/source/2。5。9/fs/,但是网页显示是
http://10.0.177/lxr/http/source/fs/不存在。
我是在/var/www/html/lxr/source/2.5.9/目录下genrexf和glimpse的呀。
回复

使用道具 举报

发表于 2003-5-28 11:13:41 | 显示全部楼层
no, should enter http://localhost/lxr/http/source/fs/

change back that 2.5.9 to $v.

and where is u fileidx?
回复

使用道具 举报

发表于 2003-5-28 11:29:00 | 显示全部楼层
fileidx在/var/www/html/lxr/source/2.5.9/下面
回复

使用道具 举报

发表于 2003-5-28 11:35:58 | 显示全部楼层
sigh, should be ok. really strange. and i can not acces u pc, sigh again.
回复

使用道具 举报

 楼主| 发表于 2003-5-28 13:00:33 | 显示全部楼层
我有两个问题:
1、在自己安装的apache环境下怎样安装lxr?(我安装成功的经验是在redhat8.0自带 的apache下)
2、要看几个不同的源代码怎么做?0.3版本的行吗?
回复

使用道具 举报

 楼主| 发表于 2003-5-28 20:45:29 | 显示全部楼层
还有个问题,请问斑竹:有lxr-0.9版本的安装方法吗?
回复

使用道具 举报

发表于 2003-5-28 21:25:04 | 显示全部楼层
same, install to different dirs

for 0.9 i never try, it need some database support and i have no time to install one.
回复

使用道具 举报

 楼主| 发表于 2003-5-29 08:18:20 | 显示全部楼层
如果要同时能看几个不同的源代码,具体应该怎样做?比如说lxr.conf应该怎样改写?难道dbdir需对应几个不同的目录?
回复

使用道具 举报

发表于 2003-5-29 09:01:02 | 显示全部楼层
no, that dbdir is ...$v/ so it will be dynamically changed.

u already have a 2.4.20. then u uncompress a 2.5.9 for example, then add a line as 2.5.9 in versions file, and run genxref and glimpse as what u did for 2.4.20. then ok.
回复

使用道具 举报

 楼主| 发表于 2003-5-29 17:51:50 | 显示全部楼层
谢谢 Dragonfly大哥对这个帖的耐心的讲解!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-6-29 13:28 , Processed in 0.119204 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表