[Koha] Rebuild-zebra stops working very often...
Robin Sheat
robin at catalyst.net.nz
Fri Jul 20 20:48:43 NZST 2012
Op 20-07-12 09:29, Sonia P. schreef:
> << Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl.) at batchCheckNonIndexedBiblios.pl line 36. >>
>
> In the script line 36 is << use C4::Context; >>
>
> We have put the script here: /usr/share/koha/bin/migration_tools/batchCheckNonIndexedBiblios.pl
>
> Does that error mean that things are not located where it should be?
You didn't show what command line you're using to run it, that's the
most critical thing.
However the problem is simply that you're not providing the path to
where the C4 directory is. I don't know your system layout, but I'm
going to guess:
perl -I /usr/share/koha/lib
/usr/share/koha/bin/migration_tools/batchCheckNonIndexedBiblios.pl
(all one line)
Also, you will have to put KOHA_CONF=/path/to/koha-conf.xml at the start
of it, inserting the real path.
--
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
More information about the Koha
mailing list