Trying to set up a bunch of SVN - Bugzilla. When compiling the script, an error occurs (see below):

For libraries (DateTime, DBI, etc.) that are used in Bugzilla and which are inside it, created links from the /usr/local/share/perl/5.10.1 directory, which is present in the @INC variable.

Help solve the problem.

Can't locate loadable object for module DBI in @INC ( @INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . contrib .) at /usr/local/share/perl/5.10.1/DBI.pm line 268 BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/DBI.pm line 268. Compilation failed in require at Bugzilla/DB.pm line 33. BEGIN failed--compilation aborted at Bugzilla/DB.pm line 33. Compilation failed in require at Bugzilla.pm line 44. BEGIN failed--compilation aborted at Bugzilla.pm line 44. Compilation failed in require at /var/svn/svn_bz/svn_bz_append.pl line 40. BEGIN failed--compilation aborted at /var/svn/svn_bz/svn_bz_append.pl line 40.

    2 answers 2

    So install libdbi-perl, for example, if a debian-based system. Why do something through the links?

    • So the teapot, c linux never dealt. And it's worth debian. - waterstream
    • put. now here is this garbage: DBI object version 1.612 doesn’t match $ DBI :: VERSION 1.616 at /usr/lib/perl/5.10/DynaLoader.pm line 215. BEGIN failed - compilation aborted at / usr / local share / perl / 5.10.1 / DBI.pm line 268 ..... Now you need to hack the links? - waterstream
    • Yes, remove what you did before (links). - goodstories
    • Removed all links came to its original state: Can't locate DateTime / Helpers.pm in @INC (@INC contains: / etc / perl /usr/local/lib/perl/5.10.1 / usr / local / share / perl / 5.10.1 / usr / lib / perl5 / usr / share / perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 / usr / local / lib / site_perl. Contrib.) At / usr / lib / perl5 /DateTime.pm line 12. I struggled with this links, and how? - waterstream
    • Everything worked out. Thank. - waterstream

    Show the code how you make the modules inclusive, the error is that there is no necessary location in @INC .

    • Well, actually it was clear to me, that's why I made links. all module code can be viewed in telegraphics.com.au/svn/svn_bz/trunk use strict; use warnings; #use Text :: Wrap; my $ SVNLOOK = "/ usr / bin / svnlook"; # chdir "/ home / sysop / bug / bugzilla"; - this is the path to bugzilla BEGIN {chdir "/ home / sysop / bug / bugzilla"; push @INC, "contrib"; push @INC, "."; } use Bugzilla; use Bugzilla :: Config; use Bugzilla :: Bug; - waterstream