Hi I installed koha 3.15.00.002 and Zebra 2.0.44 tried to rebuild zebra and I have this error, I don't know where's the error koha or zebra root@mshome:~# perl -I -I/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a Can't locate C4/Context.pm in @INC (@INC contains: -I/usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /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. and i did this and the same error export PERL5LIB=/usr/share/koha/libexport KOHA_CONF=/etc/koha/koha-conf.xml any help??
First, a question. How have you installed Koha? If you installed using the packages, then this is not the way to be doing it, instead you should be using 'sudo koha-rebuild-zebra'. See 'man koha-rebuild-zebra' for more information on how that works. If you've installed using a tarball, then your problem is that...
root@mshome:~# perl -I -I/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a
you have specified -I twice. Get rid of one of them. This causes the effect that the -I shows up in the path here:
Can't locate C4/Context.pm in @INC (@INC contains: -I/usr/share/koha/lib
and so it doesn't end up pointing to the Koha Perl libraries. Also, beware running rebuild_zebra as root, if you're not careful it'll mess up your permissions causing regular rebuilds to not work. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (2)
-
Robin Sheat -
Samo Se