[Koha] rebuild_zebra command is not working

Amit Gupta amitddng135 at gmail.com
Wed Mar 3 18:33:19 NZDT 2010


Hi,
        Export your path
        export KOHA_CONF=/etc/koha/koha-conf.xml
        export PERL5LIB=/usr/share/koha/lib

2010/3/3 Nouman Soomro <noumansoomro at rocketmail.com>

> this command is not working as follow
>
> lumhs-b70715be2:/home/nouman# /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl –v –b –a
>
> Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
> /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
> BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
> lumhs-b70715be2:/home/nouman# /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl –v –b –a
> Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
> /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
> BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
>
> lumhs-b70715be2:/home/nouman#
> lumhs-b70715be2:/home/nouman# /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl --help
> Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
> /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
> BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
>
>
> lumhs-b70715be2:/home/nouman# su koha
> koha at lumhs-b70715be2:/home/nouman$ sudo
> /usr/share/koha/bin/migration_tools/rebuild_zebra.pl –v –b –a
> Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
> /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
> BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl line 5.
>
>
>
> ------------------------------
> *From:* Magnus Enger <magnus at enger.priv.no>
> *To:* Nouman Soomro <noumansoomro at rocketmail.com>
> *Cc:* "koha at lists.katipo.co.nz" <koha at lists.katipo.co.nz>
> *Sent:* Tue, March 2, 2010 12:23:05 AM
> *Subject:* Re: [Koha] catalogue search not working
>
> 2010/3/2 Nouman Soomro <noumansoomro at rocketmail.com>:
> >
> >
> > rebuild _zebra is not working as follow
> > nouman at lumhs-b70715be2:~$
> /usr/share/koha/bin/migration_tools/rebuild_zebra –v –b –a
> > bash: /usr/share/koha/bin/migration_tools/rebuild_zebra: No such file or
> directory
>
> The script is called rebuild_zebra.pl, so you need to do this:
>
> /usr/share/koha/bin/migration_tools/rebuild_zebra.pl –v –b –a
>
> Do this to see what the options mean:
>
> /usr/share/koha/bin/migration_tools/rebuild_zebra.pl --help
>
> > nouman at lumhs-b70715be2:~$ su
> > /usr/share/koha/bin/migration_tools/rebuild_zebra –v –b –a
> > Unknown id: /usr/share/koha/bin/migration_tools/rebuild_zebra
>
> su is used to change your identity into that of another user on the system.
>
> In order to change into a user called e.g. koha you need to do this:
>
> su koha
> # you will then be asked for the password
> # you can now execute rebuild_zebra.pl as the user called koha
> /usr/share/koha/bin/migration_tools/rebuild_zebra.pl –v –b –a
>
> Use sudo to execute a command as root:
>
> sudo /usr/share/koha/bin/migration_tools/rebuild_zebra.pl –v –b –a
> # rebuild_zebra.pl will be executed as the user root
>
> HTH
> Magnus
> libriotech.no
>
>
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
>
Regards,
Amit Gupta
Nucsoft Osslabs
www.osslabs.biz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20100303/a93299eb/attachment.htm 


More information about the Koha mailing list