cron job errors

61 views
Skip to first unread message

Ian Green

unread,
Aug 21, 2011, 11:38:20 PM8/21/11
to Koha Live CD by Mizstik
Hi

I am getting this error emailed to me. Any ideas on how to fix it?

Can't locate C4/Context.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 .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
line 6.
BEGIN failed--compilation aborted at /usr/share/koha/bin/
migration_tools/rebuild_zebra.pl line 6.


Regards

Ian

Mizstik

unread,
Aug 22, 2011, 4:48:20 AM8/22/11
to kohal...@googlegroups.com
There are two ways to fix this.

1. Add this to the beginning of the perl script you're trying to use:

use lib "/usr/share/koha/lib";

2. Add this to /etc/bash.bashrc and /etc/init.d/rc

export PERL5LIB=/usr/share/koha/lib
export KOHA_CONF=/etc/koha/koha-conf.xml
Later versions of the live cd has fixed this problem.

--Mizst

Ian Green

unread,
Aug 22, 2011, 4:16:13 PM8/22/11
to Koha Live CD by Mizstik
Hi

Thanks for this. I will give it a try as soon as I get time.

Regards


Ian
Reply all
Reply to author
Forward
0 new messages