<br><div class="gmail_quote"><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">export PERL5LIB=/usr/share/koha/lib (C4 is located here) ...<br>
It seems that it is not putting the path to C4 in the @INC. <br></blockquote>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div>
</div></div></blockquote></div><br>That's correct.<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><p>Can't locate C4/Context.pm in @INC<br>
@INC contains: <br>/etc/perl
<br>/usr/local/lib/perl/5.8.8 <br>
/usr/local/share/perl/5.8.8 <br>
/usr/lib/perl5
<br>
/usr/share/perl5 <br>
/usr/lib/perl/5.8 <br>
/usr/share/perl/5.8 <br>
/usr/local/lib/site_perl</p></blockquote>/usr/share/koha/lib isn't in there. <br><br>Try exporting again. Then check your variables with the "env" command, like:<br><br><div style="margin-left: 40px;">env # or<br>
env | grep PERL5LIB<br></div><br>Then if rebuild_zebra still doesn't work, you can try something like:<br><br><div style="margin-left: 40px;"> perl
-I/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b –w<br></div><br>The -I (Include) option achieves the same kind of thing as the PERL5LIB variable. <br><br>-- <br>Joe Atzberger<br>LibLime - Open Source Library Solutions<br>