lihuabo 发表于 2003-5-24 16:30:22

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

有了lxr就可以更方便的在linux中读源代码了

Dragonfly 发表于 2003-5-24 23:36:52

lxr, i am using. i believe there is an old post intro it. if u have any problemon installing lxr 0.3 version, let me know.

lihuabo 发表于 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有关的包删除过)

lihuabo 发表于 2003-5-25 08:52:21

请问是不是一定要有glimpse?

Dragonfly 发表于 2003-5-25 09:11:18

u at least need tell me how u install it. btw, ask u somequestions
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?

lihuabo 发表于 2003-5-25 09:30:53

我的apache的RootDocument是/var/www/html,lxr就安装在这个目录下,另外,perl用的是系统的,是/usr/bin/perl

Dragonfly 发表于 2003-5-25 09:39:50

请问是不是一定要有glimpse?

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

lihuabo 发表于 2003-5-25 09:43:38

先别管glimpse,先能运行在说,呵呵

Dragonfly 发表于 2003-5-25 09:44:17

我的apache的RootDocument是/var/www/html,lxr就安装在这个目录下,另外,perl用的是系统的,是/usr/bin/perl

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

lihuabo 发表于 2003-5-25 10:02:33

http.conf我改写了。
是增加
<directory /var/www/html/lxr>

(略)
</directory>
那些吗?

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

jjww 发表于 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,
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/
但是怎么都不行,你看看,还需要做什么?
谢谢!

Dragonfly 发表于 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/sourc
e/defversion] means lxr will read version from that files,

lihuabo 发表于 2003-5-25 11:24:57

.htaceess文件我也写了

Dragonfly 发表于 2003-5-25 11:24:59

my installation:
-----------------------
the lxr.conf file

variable: v, Version, ,
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 May5 17:49 2.4.20
drwxr-xr-x   14 root   root          856 May5 18:04 2.4.20c
-rw-r--r--    1 root   root            8 May5 12:18 defversion
-rw-r--r--    1 root   root         15 May5 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 May5 11:22 blurb.html
-rwxr-xr-x    1 root   root         5121 May5 11:47 diff
-rwxr-xr-x    1 root   root         2016 May5 11:47 find
-rwxr-xr-x    1 root   root         4016 May5 17:43 ident
drwxr-xr-x    3 root   root          104 May5 11:22 lib
-rw-r--r--    1 root   root         1284 May6 20:33 lxr.conf
-rwxr-xr-x    1 root   root         3597 May5 11:47 search
-rw-r--r--    1 root   root         5813 May5 11:22 search_help.html
-rwxr-xr-x    1 root   root         5475 May5 11:48 source
-rw-r--r--    1 root   root          396 May5 11:22 template-dir
-rw-r--r--    1 root   root          489 May5 11:22 template-head
-rw-r--r--    1 root   root          264 May5 11:22 template-tail
-rw-r--r--    1 root   root          230 May5 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.
页: [1] 2 3 4 5 6
查看完整版本: 为什么这个版块没有介绍lxr的文章呢?