Dragonfly
发表于 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 sayfollow the doc, but ... need do ... instead of ... , and then ....
thx:-D:-D:-D
xdwjack
发表于 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
是什么原因?
jjww
发表于 2003-5-30 21:22:10
没有perl DB,我是重新下载了个perl,安装就有了。不过perl的路径从原来的/usr/perl
变为/usr/local/bin/perl,这个问题前面有讨论的。
Dragonfly
发表于 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.
xdwjack
发表于 2003-5-30 21:49:55
我在http://www.cpan.org/modules/01modules.index.html上下载了
BerkeleyDBPMQS BerkeleyDB-0.22.tar.gz 120k17 May 2003+
按照说明安装了,是不是这个?
现象还是和上面的相同.
我的perl就在/usr/bin/perl
您说的DB_FILE应该如何安装?
Dragonfly
发表于 2003-5-30 22:35:10
http://www.cpan.org/modules/by-module/DB_File/DB_File-1.803.tar.gz
xdwjack
发表于 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('');
}
}
这样的东西,不知道问题处在什么地方?
Dragonfly
发表于 2003-5-31 00:04:52
http shoudl exec u source as cgi. do u change the .htaccess file? and the httpd.conf?
xdwjack
发表于 2003-5-31 00:10:08
都修改了
Dragonfly
发表于 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?
xdwjack
发表于 2003-5-31 00:28:14
source 文件的模式本来就是755
而且已经通过./httpd restart来重新启动http了
Dragonfly
发表于 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
Dragonfly
发表于 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.
xdwjack
发表于 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>
以上都是原文拷贝,如有差错请指教,您真是辛苦,这么晚了,还在浏览
Dragonfly
发表于 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