QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: lihuabo

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

[复制链接]
发表于 2003-5-29 21:31:05 | 显示全部楼层
welcome, after u set all ok, can u write some text to intro how to install lxr 0.3 base on it doc already. u can say  follow the doc, but ... need do ... instead of ... , and then ....

thx      
回复

使用道具 举报

发表于 2003-5-30 17:25:59 | 显示全部楼层
我按照上面的做法做了,做到
#cd /var/www/html/lxr/source/2.4.20
#/var/www/html/lxr/bin/genxref
的时候出现
Can't locate DB_File.pm in @INC(@INC includes----------),at /var/www/html/lxr/bin/genxref
是什么原因?
回复

使用道具 举报

发表于 2003-5-30 21:22:10 | 显示全部楼层
没有perl DB,我是重新下载了个perl,安装就有了。不过perl的路径从原来的/usr/perl
变为/usr/local/bin/perl,这个问题前面有讨论的。
回复

使用道具 举报

发表于 2003-5-30 21:35:05 | 显示全部楼层
u may have perl, but do not have DB_File.pm. u can go CPAN.org to download one. jjww is strong, so he prefer to reinstall whole perl package.
回复

使用道具 举报

发表于 2003-5-30 21:49:55 | 显示全部楼层
我在http://www.cpan.org/modules/01modules.index.html上下载了
BerkeleyDB  PMQS      BerkeleyDB-0.22.tar.gz              120k  17 May 2003  +
按照说明安装了,是不是这个?

现象还是和上面的相同.

我的perl就在/usr/bin/perl

您说的DB_FILE应该如何安装?
回复

使用道具 举报

发表于 2003-5-30 22:35:10 | 显示全部楼层
http://www.cpan.org/modules/by-module/DB_File/DB_File-1.803.tar.gz
回复

使用道具 举报

发表于 2003-5-31 00:02:49 | 显示全部楼层
我几乎所有的都成功了,但是我敲入http://219.242.117.253/lxr/http/source时,出现

#!/usr/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;


sub descexpand {
    my $templ = shift;

    if ($index{$filename}) {
        return(&expandtemplate($templ,
                               ('desctext', sub {return($index{$filename})})
                               ));
    } else {
        return('');
    }
}


这样的东西,不知道问题处在什么地方?
回复

使用道具 举报

发表于 2003-5-31 00:04:52 | 显示全部楼层
http shoudl exec u source as cgi. do u change the .htaccess file? and the httpd.conf?
回复

使用道具 举报

发表于 2003-5-31 00:10:08 | 显示全部楼层
都修改了
回复

使用道具 举报

发表于 2003-5-31 00:13:54 | 显示全部楼层
what is the file mode of source? u had better change to 755. do u restart u http service?
回复

使用道具 举报

发表于 2003-5-31 00:28:14 | 显示全部楼层
source 文件的模式本来就是755

而且已经通过./httpd restart来重新启动http了
回复

使用道具 举报

发表于 2003-5-31 00:30:53 | 显示全部楼层
i believe u have perl. so it should be ok. can u double check u http.conf and .htaccess? are .htacces in right dir?

why i seldom meet such problem? this make me difficult to check these problems
回复

使用道具 举报

发表于 2003-5-31 00:35:21 | 显示全部楼层
can u run http://../cgi-bin/printenv and .../test-cgi ok, if so, then strange, if not, u apache has problem.
回复

使用道具 举报

发表于 2003-5-31 00:39:03 | 显示全部楼层
在/etc/httpd/conf中的httpd.conf中加入

<Directory "/var/www/html/lxr/http">
Options All
AllowOverride All
order allow,deny
allow from all
</Directory>


在/var/www/html/lxr/http/中加入编辑文件.htaccess,内容如下
<Files ~(search|source|ident|diff)$>
SetHandler cgi-script
</Files>


以上都是原文拷贝,如有差错请指教,您真是辛苦,这么晚了,还在浏览
回复

使用道具 举报

发表于 2003-5-31 00:43:10 | 显示全部楼层
so can u go /var/www/html/lxr/http/ run perl source, if can, (ignore the result), then u perl is ok, try to check that two cgi-bin to see if ok.


i am working now
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-29 06:50 , Processed in 0.039543 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

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