zebra indexing issues
Hello all, I'm testing importing our MARC data into Koha 3 on Debian Etch and I want to be able to quickly rebuild the zebra index. I found instructions to do so in INSTALL.debian 7.2 Fast Index: $ misc/migration-tools/rebuild_zebra.pl -b -w Unfortunately, there is no /misc directory on my server...does this mean that I missed something during installation? I do have a rebuild_zebra.pl script, located at: /usr/share/koha3/bin/migration_tools, but when I run this script, the following error is returned: 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 .) at /usr/share/koha3/bin/migration_tools/rebuild_zebra.pl line 5. BEGIN failed--compilation aborted at /usr/share/koha3/bin/migration_tools/rebuild_zebra.pl line 5. Context.pm does exist at /usr/share/koha3/lib/C4 Can someone tell me what @INC is referring to? It is not referenced in the rebuild_zebra.pl script. Any help will be greatly appreciated. BTW, I was able to successfully index my first import by setting up the zebra demon and running: zebrasrv -f /etc/koha/koha-conf.xml I want to be able to **rebuild** the index, though, so I will need to be able to run the rebuild_zebra.pl script. Thanks in advance. -- Cheers, Christopher Curry Assistant Technical Librarian / Assistant IT Officer American Philosophical Society 105 South Fifth Street Philadelphia, PA 19106-3386 Tel. (215) 599-4299 ccurry@amphilsoc.org <mailto:ccurry@amphilsoc.org> *For technical support, please use helpdesk@amphilsoc.org <mailto:helpdesk@amphilsoc.org>* Main Library number: (215)440-3400 APS website: http://www.amphilsoc.org
Hi, 2009/5/29 Christopher Curry <ccurry@amphilsoc.org>:
7.2 Fast Index: $ misc/migration-tools/rebuild_zebra.pl -b -w
Unfortunately, there is no /misc directory on my server...does this mean that I missed something during installation?
No, the directory name can vary a bit depending on the installation mode you used when you installed Koha.
Context.pm does exist at /usr/share/koha3/lib/C4
Can someone tell me what @INC is referring to? It is not referenced in the rebuild_zebra.pl script.
@INC is referring to the path that the Perl interpreter uses to locate modules. You should set the PERL5LIB environment variable as follows: export PERL5LIB=/usr/share/koha3/lib You will also need to make sure that the KOHA_CONF environment variable is set: export KOHA_CONF=/etc/koha/koha-conf.xml Regards, Galen -- Galen Charlton VP, Research & Development, LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 skype: gmcharlt
Thanks, Galen. That did it. Cheers, Christopher Curry Assistant Technical Librarian / Assistant IT Officer American Philosophical Society 105 South Fifth Street Philadelphia, PA 19106-3386 Tel. (215) 599-4299 ccurry@amphilsoc.org <mailto:ccurry@amphilsoc.org> *For technical support, please use helpdesk@amphilsoc.org <mailto:helpdesk@amphilsoc.org>* Main Library number: (215)440-3400 APS website: http://www.amphilsoc.org Galen Charlton wrote:
Hi,
2009/5/29 Christopher Curry <ccurry@amphilsoc.org>:
7.2 Fast Index: $ misc/migration-tools/rebuild_zebra.pl -b -w
Unfortunately, there is no /misc directory on my server...does this mean that I missed something during installation?
No, the directory name can vary a bit depending on the installation mode you used when you installed Koha.
Context.pm does exist at /usr/share/koha3/lib/C4
Can someone tell me what @INC is referring to? It is not referenced in the rebuild_zebra.pl script.
@INC is referring to the path that the Perl interpreter uses to locate modules. You should set the PERL5LIB environment variable as follows:
export PERL5LIB=/usr/share/koha3/lib
You will also need to make sure that the KOHA_CONF environment variable is set:
export KOHA_CONF=/etc/koha/koha-conf.xml
Regards,
Galen
participants (2)
-
Christopher Curry -
Galen Charlton