QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1400|回复: 8

用lxr出现问题,直接显示出perl脚本程序,没有执行?

[复制链接]
发表于 2003-10-13 20:41:50 | 显示全部楼层 |阅读模式
我按照:http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=26480&highlight=lxr
   的说明安装好了lxr和相关工具。但是输入http://127.0.0.1/lxr/http/source后得到的网页竟然是:

   #!/usr/local/bin/perl
# $Id: source,v 1.4 1998/05/14 11:59:22 argggh Exp $

# source --        Present sourcecode as html, complete with references
#
#        Arne Georg Gleditsch <[email protected]>
#        Per Kristian Gjermshus <[email protected]>
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

######################################################################

use lib 'lib/';
use SimpleParse;
use LXR::Common;
use LXR::Config;
                                        。。。。。。。。。。。。

为什么会这样,请假大牛了。谢谢
  
发表于 2003-10-18 14:23:22 | 显示全部楼层
check if u have execution right on perl script
if u have perl install on u server
and a .htaccess file.
回复

使用道具 举报

 楼主| 发表于 2003-10-19 14:49:13 | 显示全部楼层
.htaccess文件和perl我都已经装好了。

  我 用 perl 执行source脚本之后重定向到 test.html中,用http://localhost/lxr/http/test.html地址打开 ,看到 了 Linux   Cross Reference  Linux-2.4.20/  页面。但我点击任何文件得到的是:
   Object not found!

    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

    If you think this is a server error, please contact the webmaster

Error 404

   页面。
    点击页面底部的 ~ [ source navigation ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~ 得到的就是源码页面。这是怎么回事啊?谢谢斑竹大虾了。
回复

使用道具 举报

 楼主| 发表于 2003-10-19 15:05:55 | 显示全部楼层
现在第一个问题已经解决了。就是
点击页面底部的 ~ [ source navigation ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~ 得到的就是源码页面。这是怎么回事啊?再次谢谢斑竹大虾了。
回复

使用道具 举报

发表于 2003-10-21 00:11:32 | 显示全部楼层
check the file mode.
回复

使用道具 举报

 楼主| 发表于 2003-10-22 21:05:04 | 显示全部楼层
都是可读,可执行的啊
回复

使用道具 举报

发表于 2003-10-23 21:06:13 | 显示全部楼层
confusing. i do not setup my own own for a long time. my network speed is fast enough to access the lxr main site,
回复

使用道具 举报

 楼主| 发表于 2003-10-23 21:25:12 | 显示全部楼层
hehe, me too
that is a good idea.
回复

使用道具 举报

发表于 2003-10-23 22:26:55 | 显示全部楼层
my own server is out of space, so i have to delete it to get xxxMB space.  :-(
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-16 07:05 , Processed in 0.044508 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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