[Koha] fines.pl script fails at Line 41
Galen Charlton
gmc at esilibrary.com
Wed Mar 3 02:36:35 NZDT 2010
Hi,
On Mar 2, 2010, at 8:24 AM, benson Mugambi wrote:
> Hi folks,
> I 've been trying to run the fines script manually after i realized that koha was not doing it on crontab. This is however what am getting:
>
> main:~# /usr/share/koha/bin/cronjobs/fines.pl
> Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/koha/bin/cronjobs/fines.pl line 41.
> BEGIN failed--compilation aborted at /usr/share/koha/bin/cronjobs/fines.pl line 41.
>
> When i try to locate whether context.pm is existing this is what iam getting:
>
> main:~# locate C4/Context.pm
> /build/koha-3.00.03/C4/Context.pm
> /build/koha-3.00.03/blib/PERL_MODULE_DIR/C4/Context.pm
> /build/koha-3.00.04/C4/Context.pm
> /build/koha-3.00.04_fixed/C4/Context.pm
> /build/koha-3.00.04_fixed/blib/PERL_MODULE_DIR/C4/Context.pm
> /home/gretsa/kohaclone/C4/Context.pm
> /usr/share/koha/lib/C4/Context.pm
>
> So how do i make koha to see where context is located, because that path seems not be found? Or simply how do i fix this? I'll appreciate any help.
> Thanks.
It looks like you may have at least two installations of Koha set up. Either way, you'll need to set the PERL5LIB environment variable to point the correct directory containing the C4 Perl modules. Before running fines.pl, do either
export PERL5LIB=/usr/share/koha/lib:$PERL5LIB
or
export PERL5LIB=/home/gretsa/kohaclone:$PERL5LIB
depending on which installation is active. You will also need to set the KOHA_CONF environment variable to point to the correct koha-conf.xml.
Regards,
Galen
--
Galen Charlton
VP, Data Services
Equinox Software, Inc. / Your Library's Guide to Open Source
email: gmc at esilibrary.com
direct: +1 352-215-7548
skype: gmcharlt
web: http://www.esilibrary.com/
More information about the Koha
mailing list