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, like: 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 variable. -- Joe Atzberger LibLime - Open Source Library Solutions