SourceForge has been redesigned. Learn more.
Close

#39 genxref (LXR 0.9.1) error

closed-rejected
nobody
genxref (49)
5
2002-02-12
2002-02-12
No

Hello,

I am running LXR 0.9.1 on a Linux box with Mysql Ver
11.15 Distrib 3.23.41. I am trying to cross-reference
plain files for the moment.

When I run './genxref --url=http://mylxr.srv/lxr' I
get the following error message:

Can't locate DBI.pm in @INC (@INC contains:
lib /usr/lib/perl5/5.6.1/i586-
linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6
.1/i586-
linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/sit
e_perl .)
at /usr/lib/perl5/site_perl/LXR/Index/Mysql.pm line
24, <CONFIG> line 1.
BEGIN failed--compilation aborted
at /usr/lib/perl5/site_perl/LXR/Index/Mysql.pm line
24, <CONFIG> line 1.
Compilation failed in require
at /usr/lib/perl5/site_perl/LXR/Index/DBI.pm line 30,
<CONFIG> line 1.

Changing line 24 in Mysql.pm from 'use DBI;' to 'use
LXR::Index::DBI;' ends up in this error message:

Can't locate object method "connect" via package "DBI"
(perhaps you forgot to load "DBI"?)
at /usr/lib/perl5/site_perl/LXR/Index/Mysql.pm line
40, <CONFIG> line 1.

and there I am stuck because when I look in DBI.pm
there is only one function named 'new' definded.

Thanks for your help,
Berni

Discussion

  • Bernhard Penz

    Bernhard Penz - 2002-02-12

    My lxr.conf file

     
  • Malcolm Box

    Malcolm Box - 2002-02-12

    Logged In: YES
    user_id=215386

    The most likely reason for this is that you don't have the
    DBI perl modules installed. You can install them from CPAN:

    perl -MCPAN -e shell

    will get you started.

    Changing the line in Mysql.pm will not help - LXR::DBI and
    DBI are different modules, hence the error message about
    connect.

    This sort of question is best asked on the lxr-general or
    lxr-developer list as it's not really a bug.

     
  • Malcolm Box

    Malcolm Box - 2002-02-12
    • status: open --> closed-rejected
     

Log in to post a comment.