On Fri, 2011-03-04 at 14:01 +0100, Thorsten Schöning wrote:
> Guten Tag Marcel Loose,
> am Freitag, 4. März 2011 um 13:28 schrieben Sie:
> 
> > $VAR1 = '/srv/bugzilla-3.4.10/lib';
> [...]
> > Could anyone help me out?
> 
> You should check that checksetup.pl runs without errors and add the
> following line to SCMBug's start script. Especially if you installed
> perl packages which Bugzilla depends on in the lib directory it's not
> enough to just have the lib directory in @INC. The following statement
> will make perl search for needed packages in architecture specific
> subdirectories and some stuff.
> 
> export PERL5LIB=<Bugzilla installation dir>/lib
> 
> Mit freundlichen Grüßen,
> 
> Thorsten Schöning
> 

You're a genius Thorsten. Thanks.


I had experimented with setting PERL5LIB in the scmbug-server script,
but then I didn't get things to work. The following, however, *does*
work (from the command line):

$ PERL5LIB=/srv/bugzilla-3.4.10/lib /usr/bin/perl -w /usr/sbin/scmbug_daemon.pl 
/etc/scmbug/daemon.conf

When I added the line

PERL5LIB=/srv/bugzilla-3.4.10/lib

to the scmbug-server script, things failed again. But then I realized
that /usr/sbin/scmbug_daemon.pl creates a new sub-process. Therefor, I
must *export* PERL5LIB. Bingo!


One thing I don't understand -- but that's probably my lack of
understanding Perl -- is why you need to set PERL5LIB, when you already
do 

        unshift @INC, $self->installation_directory() . "/lib";

in /usr/share/scmbug/lib/Scmbug/Daemon/Bugzilla.pm, which AFAIK also
adds /srv/bugzilla-3.4.10/lib to the library search path.


Anyway, thanks again.
Marcel Loose.


_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to