QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5730|回复: 80

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

[复制链接]
发表于 2003-5-24 16:30:22 | 显示全部楼层 |阅读模式
有了lxr就可以更方便的在linux中读源代码了
发表于 2003-5-24 23:36:52 | 显示全部楼层
lxr, i am using. i believe there is an old post intro it. if u have any problem  on installing lxr 0.3 version, let me know.
回复

使用道具 举报

 楼主| 发表于 2003-5-25 08:45:56 | 显示全部楼层
我安装完毕后输入url:http://127.0.0.1/lxr/http/blurb.html,再点击“Browse the code"后提示没有可浏览的源代码。我输入”http://127.0.0.1/lxr/http/source"显示的是source文件的代码。
我用redhat8.0自带的apache2.0来安装是如此,在自安装的apache1.3.27下安装也是如此。我怀疑问题是不是出在 perl上面。(我曾经删除过mysql,记得把一个和perl有关的包删除过)
回复

使用道具 举报

 楼主| 发表于 2003-5-25 08:52:21 | 显示全部楼层
请问是不是一定要有glimpse?
回复

使用道具 举报

发表于 2003-5-25 09:11:18 | 显示全部楼层
u at least need tell me how u install it. btw, ask u some  questions
do u modify the apache conf file base on that doc? what fille mode is that source? where is u perl installed? is /usr/bin/perl?
回复

使用道具 举报

 楼主| 发表于 2003-5-25 09:30:53 | 显示全部楼层
我的apache的RootDocument是/var/www/html,lxr就安装在这个目录下,另外,perl用的是系统的,是/usr/bin/perl
回复

使用道具 举报

发表于 2003-5-25 09:39:50 | 显示全部楼层
[quote:b1b1f0d739="lihuabo"]请问是不是一定要有glimpse?[/quote]

u need that for u file search, and free text search
回复

使用道具 举报

 楼主| 发表于 2003-5-25 09:43:38 | 显示全部楼层
先别管glimpse,先能运行在说,呵呵
回复

使用道具 举报

发表于 2003-5-25 09:44:17 | 显示全部楼层
[quote:baf18ae3bd="lihuabo"]我的apache的RootDocument是/var/www/html,lxr就安装在这个目录下,另外,perl用的是系统的,是/usr/bin/perl[/quote]

do u modify the http.conf?
u also need add a versions file and a defversion file under the source dir
回复

使用道具 举报

 楼主| 发表于 2003-5-25 10:02:33 | 显示全部楼层
http.conf我改写了。
是增加
<directory /var/www/html/lxr>

(略)
</directory>
那些吗?
回复

使用道具 举报

发表于 2003-5-25 10:12:59 | 显示全部楼层
then do u add such to .htaccess?
   <Files ~ (search|source|ident|diff|find)$>
   SetHandler cgi-script
   </Files>
to make them be executed as cgi-script?
which file mode of the perl script? do u have -x on that file? is u script's first line is /usr/bin/perl?
回复

使用道具 举报

发表于 2003-5-25 10:46:14 | 显示全部楼层
我也是安装不行。
lxr-0.3.tar.gz + apache_1.3.27.tar.gz
apache安装路径/usr/local/apache/
lxr安装路径/usr/local/apache/htdocs/
perl相关是正常的。
在/usr/local/apache/htdocs/http/目录下,
添加文件.htaccess
<Files ~ (search|source|ident|diff|find)$>
SetHandler cgi-script
</Files>
修改/usr/local/apache/conf/http.conf文件
<Directory "/usr/local/apache/htdocs/http">
        Allow from all
</Directory>
我新下载的2.5.9存于:/usr/local/apache/htdocs/source/linux-2.5.9
修改/usr/local/apache/htdocs/http/lxr.conf
variable: v, Version, [/usr/local/apache/htdocs/source/linux-2.5.9]
variable: a, Architecture, (i386, alpha, m68k, mips, ppc, sparc, sparc64)
baseurl: http://10.1.0.177/
htmlhead: /usr/local/apache/htdocs/http/template-head
htmltail: /usr/local/apache/htdocs/http/template-tail
htmldir:  /usr/local/apache/htdocs/http/template-dir
sourceroot: /usr/local/apache/htdocs/source/$v/linux/
srcrootname: Linux
incprefix: /usr/local/apache/htdocs/source/linux-2.5.9/include
dbdir: /usr/local/apache/htdocs/source/$v/
glimpsebin: /usr/local/apache/htdocs/bin/glimpse
map: /include/asm[^\/]*/ /include/asm-$a/
map: /arch/[^\/]+/ /arch/$a/
但是怎么都不行,你看看,还需要做什么?
谢谢!
回复

使用道具 举报

发表于 2003-5-25 11:18:15 | 显示全部楼层
1) if u access http://../lxr/http/source. what does it report?
2) why not modify as
<Directory /home/httpd/html/lxr>
Options All
AllowOverride All
</Directory>
i am not quite familar with http.conf. so u had better use what the doc uses.
3) u version is wrong. u had better change that linux-2.5.9 to 2.5.9 and add two files under source dir, defversion and versions. both file have one line text "2.5.9"
variable: v, Version, [/home/httpd/htdocs/lxr/source/versions],[/home/httpd/htdocs/lxr/sourc
e/defversion] means lxr will read version from that files,
回复

使用道具 举报

 楼主| 发表于 2003-5-25 11:24:57 | 显示全部楼层
.htaceess文件我也写了
回复

使用道具 举报

发表于 2003-5-25 11:24:59 | 显示全部楼层
my installation:
-----------------------
the lxr.conf file

variable: v, Version, [/home/httpd/htdocs/lxr/source/versions],[/home/httpd/htdocs/lxr/source/defversion]
variable: a, Architecture, (i386, alpha, m68k, mips, ppc, sparc, sparc64)
baseurl: http://localhost/lxr/http/
htmlhead: /home/httpd/htdocs/lxr/http/template-head
htmltail: /home/httpd/htdocs/lxr/http/template-tail
htmldir:  /home/httpd/htdocs/lxr/http/template-dir
sourceroot: /home/httpd/htdocs/lxr/source/$v/
srcrootname: DragonflyLinuxKernelSouceStudy
incprefix: /include
dbdir: /home/httpd/htdocs/lxr/source/$v
glimpsebin: /usr/bin/glimpse
map: /include/asm[^\/]*/ /include/asm-$a/
map: /arch/[^\/]+/ /arch/$a/
---------------------------------------
dragonfly / # ls /home/httpd/htdocs/lxr/source/ -l
total 10
drwxr-xr-x   14 573      573           856 May  5 17:49 2.4.20
drwxr-xr-x   14 root     root          856 May  5 18:04 2.4.20c
-rw-r--r--    1 root     root            8 May  5 12:18 defversion
-rw-r--r--    1 root     root           15 May  5 16:45 versions
-------------------------------------------
dragonfly / # more /home/httpd/htdocs/lxr/source/versions
2.4.20
2.4.20c
--------------------------------------------
dragonfly / # more /home/httpd/htdocs/lxr/source/defversion
2.4.20
---------------------------------------------
dragonfly / # ls /home/httpd/htdocs/lxr/http/ -l
total 65
-rw-r--r--    1 root     root         4305 May  5 11:22 blurb.html
-rwxr-xr-x    1 root     root         5121 May  5 11:47 diff
-rwxr-xr-x    1 root     root         2016 May  5 11:47 find
-rwxr-xr-x    1 root     root         4016 May  5 17:43 ident
drwxr-xr-x    3 root     root          104 May  5 11:22 lib
-rw-r--r--    1 root     root         1284 May  6 20:33 lxr.conf
-rwxr-xr-x    1 root     root         3597 May  5 11:47 search
-rw-r--r--    1 root     root         5813 May  5 11:22 search_help.html
-rwxr-xr-x    1 root     root         5475 May  5 11:48 source
-rw-r--r--    1 root     root          396 May  5 11:22 template-dir
-rw-r--r--    1 root     root          489 May  5 11:22 template-head
-rw-r--r--    1 root     root          264 May  5 11:22 template-tail
-rw-r--r--    1 root     root          230 May  5 11:22 valid_html3.2.gif

basically u only need change the installation dir will work. i also change the http.conf base on that doc.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-29 06:47 , Processed in 0.058534 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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