Dragonfly 发表于 2003-5-27 21:29:19

斑竹同志:我终于搞定了,看到了源代码。。。只是以同样的方法在另一位朋友的机子上安装却怎么也不成功。。最后我只好把问题归结于他的apache 上了。
还有个问题,要是在自己安装的apache 环境下安装lxr应该怎么做?

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

Dragonfly 发表于 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.

jjww 发表于 2003-5-27 21:35:57

我的lxr.conf
variable: v, Version, ,
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/

jjww 发表于 2003-5-27 21:37:36

我在不行的情况下,将$v直接改为2.5.9的,和versions, defversion一样

Dragonfly 发表于 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.

jjww 发表于 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的呀。

Dragonfly 发表于 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?

jjww 发表于 2003-5-28 11:29:00

fileidx在/var/www/html/lxr/source/2.5.9/下面

Dragonfly 发表于 2003-5-28 11:35:58

sigh, should be ok. really strange. and i can not acces u pc, sigh again.

lihuabo 发表于 2003-5-28 13:00:33

我有两个问题:
1、在自己安装的apache环境下怎样安装lxr?(我安装成功的经验是在redhat8.0自带 的apache下)
2、要看几个不同的源代码怎么做?0.3版本的行吗?

lihuabo 发表于 2003-5-28 20:45:29

还有个问题,请问斑竹:有lxr-0.9版本的安装方法吗?

Dragonfly 发表于 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.

lihuabo 发表于 2003-5-29 08:18:20

如果要同时能看几个不同的源代码,具体应该怎样做?比如说lxr.conf应该怎样改写?难道dbdir需对应几个不同的目录?

Dragonfly 发表于 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.

lihuabo 发表于 2003-5-29 17:51:50

谢谢 Dragonfly大哥对这个帖的耐心的讲解!
页: 1 2 [3] 4 5 6
查看完整版本: 为什么这个版块没有介绍lxr的文章呢?