LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: fdl

linux下源码阅读工具

[复制链接]
发表于 2003-6-19 17:50:20 | 显示全部楼层
vim+ctags
or emacs
发表于 2003-6-27 01:52:57 | 显示全部楼层
我按照上面的方法
http://172.16.10.235/lxr/http/blurb.html
点击Browse the code
出现错误
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@LOVE and inform them of the time the error occurred, and anything you might have done that may have caused the error.
发表于 2003-6-27 13:15:50 | 显示全部楼层
给 两三个和弦

我已经弄好了,出现你上面那样的错误,可以有这个原因,你的apache支不支持cgi呀?如果不支持。最好重新编译一下。让它能够支持cgi。
在ML下好像没有预装apache的。
我想你的错误可能是这个原因。
发表于 2003-6-27 17:29:33 | 显示全部楼层
嘿嘿
你真热心
发表于 2003-6-27 17:36:40 | 显示全部楼层
嘿嘿
你真热心
发表于 2003-6-27 22:22:47 | 显示全部楼层
sourcenavigator也可以用,虽然界面粗糙了点!
发表于 2003-7-9 08:09:48 | 显示全部楼层
debian(sid)+wine+Source Insight(ver 3.10) == Cool !!!  :%
发表于 2003-11-12 05:07:43 | 显示全部楼层
ctags(my choice)或者global

source navigator 还不如ctags
发表于 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!
发表于 2003-12-1 22:11:43 | 显示全部楼层
emacs + etags + cscope
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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