[Koha] Koha3 Beta2 - rebuild_zebra.pl error: Can't locate C4/Context.pm
Joshua Ferraro
jmf at liblime.com
Fri Apr 25 09:12:09 NZST 2008
Hey Meiling,
On Thu, Apr 24, 2008 at 4:57 PM, Meiling Li <mli at lalawlibrary.org> wrote:
>
> I managed to get Koha3 Beta2 installed on a box with Debain etch 4. I've followed the instructions in INSTALL.debian but hit a snag when I got to the point of doing import and fast-index marc records (which I had no problem on a prior box running Koha3 Beta[1]).
>
> > 7.1 Import:
> > $ misc/migration-tools/bulkmarcimport.pl -file /path/to/marc.iso2709
>
> > 7.2 Fast Index:
> > $ misc/migration-tools/rebuild_zebra.pl -b -w
>
> The import part seemed to go fine but I got an error when rebuilding the zebra index:
>
> kohaadmin at kohabeta2:/usr/share/koha/bin/migration_tools$ export KOHA_CONF=/etc/koha/koha-conf.xml
> kohaadmin at kohabeta2:/usr/share/koha/bin/migration_tools$ ./rebuild_zebra.pl -w -b
>
> 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 ./rebuild_zebra.pl line 5.
> BEGIN failed--compilation aborted at ./rebuild_zebra.pl line 5.
>
> On the other box running beta1 I was able to run the same script with no problem. Any suggestion on how I can resolve this? I did verify Context.pm exists as follows:
>
> kohabeta2:/usr/share/koha/lib/C4# ls -l Conte*
> -r--r--r-- 1 kohaadmin kohaadmin 38214 2008-04-22 16:10 Context.pm
The solution here is to tell perl where your C4 directory is. You can
do this by exporting PER5LIB,
starting in the modules directory, or using the -I flag. I'd suggest
the last option. Rathe than:
kohaadmin at kohabeta2:/usr/share/koha/bin/migration_tools$
./rebuild_zebra.pl -w -b
Try:
kohaadmin at kohabeta2:/usr/share/koha/bin/migration_tools$ perl -I
/usr/local/share/koha/lib rebuild_zebra.pl -w -b
Cheers,
--
Joshua Ferraro SUPPORT FOR OPEN-SOURCE SOFTWARE
CEO migration, training, maintenance, support
LibLime Featuring Koha Open-Source ILS
jmf at liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS
More information about the Koha
mailing list