[Koha] Can't locate C4/Context.pm

Joe Atzberger ohiocore at gmail.com
Thu Jun 18 14:45:55 NZST 2009

> export PERL5LIB=/usr/share/koha/lib (C4 is located here) ...
> It seems that it is not putting the path to C4 in the @INC.

That's correct.

> Can't locate C4/Context.pm in @INC
> @INC contains:
> /etc/perl
> /usr/local/lib/perl/5.8.8
> /usr/local/share/perl/5.8.8
> /usr/lib/perl5
> /usr/share/perl5
> /usr/lib/perl/5.8
> /usr/share/perl/5.8
> /usr/local/lib/site_perl
/usr/share/koha/lib isn't in there.

Try exporting again.  Then check your variables with the "env" command,

env   # or
env | grep PERL5LIB

Then if rebuild_zebra still doesn't work, you can try something like:

perl -I/usr/share/koha/lib
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b –w

The -I (Include) option achieves the same kind of thing as the PERL5LIB

Joe Atzberger
LibLime - Open Source Library Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20090617/86bbc600/attachment.htm 

More information about the Koha mailing list