arkira 发表于 2003-10-13 20:41:50

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

我按照: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;
                                        。。。。。。。。。。。。

为什么会这样,请假大牛了。谢谢
:oops:

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

arkira 发表于 2003-10-19 14:49:13

.htaccess文件和perl我都已经装好了。

我 用 perl 执行source脚本之后重定向到 test.html中,用http://localhost/lxr/http/test.html地址打开 ,看到 了 Linux   Cross ReferenceLinux-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 ] ~ 得到的就是源码页面。这是怎么回事啊?谢谢斑竹大虾了。

arkira 发表于 2003-10-19 15:05:55

现在第一个问题已经解决了。就是
点击页面底部的 ~ [ source navigation ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~ 得到的就是源码页面。这是怎么回事啊?再次谢谢斑竹大虾了。

Dragonfly 发表于 2003-10-21 00:11:32

check the file mode.

arkira 发表于 2003-10-22 21:05:04

都是可读,可执行的啊

Dragonfly 发表于 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,
:-D

arkira 发表于 2003-10-23 21:25:12

hehe, me too
that is a good idea.

Dragonfly 发表于 2003-10-23 22:26:55

my own server is out of space, so i have to delete it to get xxxMB space.:-(
页: [1]
查看完整版本: 用lxr出现问题,直接显示出perl脚本程序,没有执行?