+ -
当前位置:首页 → 问答吧 → lxr的配置问题

lxr的配置问题

时间:2003-04-15

来源:互联网

我的那个genxref 文件根本就不能通过perl编译
出错如下:

[root@localhost bin]# ./genxref
Can't locate DB_File.pm in @INC (@INC contains: lib/ /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./genxref line 31.
BEGIN failed--compilation aborted at ./genxref line 31.

我的perl版本如下:

[root@localhost bin]# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi
uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdbm'
ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.2.92'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Sep 1 2002 23:56:49
@INC:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl

作者: hit007   发布时间: 2003-04-15

如题

作者: hit007   发布时间: 2003-04-20

把mysql装上

作者: iceboy   发布时间: 2003-05-02

i have no mysql, but have it, go http://www.cpan.org/modules/ to download it. u need berkely db in fact.

作者: cheungming   发布时间: 2003-05-06

in fact , lxr can use postgre sql, mysql or oracle

作者: iceboy   发布时间: 2003-05-07

1,我不知道究竟问题的具体原因怎么样,但是从出错的位置我知道
DB_FILE这个东西好像没有获得perl的支持.

2,一个偶然的机会,我用text模式安装linux的时候,发现选择软件包的时候可以选择perl_DB_FILE类似的language支持,然后我选了,一切ok

作者: hit007   发布时间: 2003-05-08

~ [ source navigation ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ]

上面的标记中,file search不能形成正确的网叶,而是列出了它的原始perl文件,不知道怎么回事.其他的还可以生成正确的网叶

作者: hit007   发布时间: 2003-05-08

兄弟是用mdk的吧,我也用过,现在改turbolinux了,我在mdk9.0和tl8w下都装过lxr,出错无数,不过都装成功了,有个小经验是路径名后有没有"/"很重要.还有就是.htaccess文件和/etc/httpd/conf/httpd.conf要正确编辑,本来我想贴上我机器里的文件的,奇怪的是在lynx下(纯文本的控制台--我的最爱)找不到那个按钮,等下次我开xwindows时再说吧.

作者: hj_18   发布时间: 2003-05-09

/source-----则列出源代码(perl)
/source/-----则工作正常,形成网页


/find
/find/
都是列出perl源码,不知什么原因

作者: hit007   发布时间: 2003-05-10

我的错误和楼主的一模一样,那位高手能指教一下,谢谢!

可是在安装rh8.0的时候已经选择安装 有关perl的软件包了,在这之后,还需要进行配置吗?

作者: xdw_jack   发布时间: 2003-05-31