[Koha] problem rebuilding Zebra

Chris Cormack chris at bigballofwax.co.nz
Mon Sep 14 16:25:22 NZST 2009

2009/9/14 Zahid Hossain Shoeb <zhshoeb at yahoo.com>:
> Thanks Chris.
> However, the current problem is rebuilding Zebra. When I use the following
> command after importing CDS/ISIS data to marc
> library:/usr/share/koha/bin/migration_tools# ./rebuild_zebra.pl -b -r
> The following error occurred:
> 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 ./rebuild_zebra.pl line 5.
> BEGIN failed--compilation aborted at ./rebuild_zebra.pl line 5.
> Look forward again for the kind solution.
Right you cant run it just like that.

try perl -I /usr/share/koha/lib rebuild_zebra.pl -b -r

or you can export some ENV variables.
one for KOHA_CONF and one for PERL5LIB

Take a look at your apache config for koha, it will be setting those variables.


More information about the Koha mailing list