Hi,<br> Export your path<br> export KOHA_CONF=/etc/koha/koha-conf.xml<br> export PERL5LIB=/usr/share/koha/lib<br><br><div class="gmail_quote">2010/3/3 Nouman Soomro <span dir="ltr"><<a href="mailto:noumansoomro@rocketmail.com">noumansoomro@rocketmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">this command is not working as follow<br>
<br>lumhs-b70715be2:/home/nouman# /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> –v –b –a<br><br>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/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br>
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br>lumhs-b70715be2:/home/nouman# /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> –v –b –a<br>
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/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br>BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br>
<br>lumhs-b70715be2:/home/nouman# <br>lumhs-b70715be2:/home/nouman# /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> --help<br>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/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br>
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br><br><br>lumhs-b70715be2:/home/nouman# su koha<br>koha@lumhs-b70715be2:/home/nouman$ sudo /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> –v –b –a<br>
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/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br>
BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> line 5.<br><br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Magnus Enger <<a href="mailto:magnus@enger.priv.no" target="_blank">magnus@enger.priv.no</a>><br>
<b><span style="font-weight: bold;">To:</span></b> Nouman Soomro <<a href="mailto:noumansoomro@rocketmail.com" target="_blank">noumansoomro@rocketmail.com</a>><br><b><span style="font-weight: bold;">Cc:</span></b> "<a href="mailto:koha@lists.katipo.co.nz" target="_blank">koha@lists.katipo.co.nz</a>" <<a href="mailto:koha@lists.katipo.co.nz" target="_blank">koha@lists.katipo.co.nz</a>><br>
<b><span style="font-weight: bold;">Sent:</span></b> Tue, March 2, 2010 12:23:05 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Koha] catalogue search not working<br></font><br>2010/3/2 Nouman Soomro <<a href="mailto:noumansoomro@rocketmail.com" target="_blank">noumansoomro@rocketmail.com</a>>:<br>
><br>><br>> rebuild _zebra is not working as follow<br>> nouman@lumhs-b70715be2:~$ /usr/share/koha/bin/migration_tools/rebuild_zebra –v –b –a<br>> bash: /usr/share/koha/bin/migration_tools/rebuild_zebra: No such file or directory<br>
<br>The script is called <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a>, so you need to do this:<br><br>/usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> –v –b –a<br>
<br>Do this to see what the options mean:<br><br>/usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> --help<br><br>> nouman@lumhs-b70715be2:~$ su<br>> /usr/share/koha/bin/migration_tools/rebuild_zebra –v –b –a<br>
> Unknown id: /usr/share/koha/bin/migration_tools/rebuild_zebra<br><br>su is used
to change your identity into that of another user on the system.<br><br>In order to change into a user called e.g. koha you need to do this:<br><br>su koha<br># you will then be asked for the password<br># you can now execute <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> as the user called koha<br>
/usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> –v –b –a<br><br>Use sudo to execute a command as root:<br><br>sudo /usr/share/koha/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> –v –b –a<br>
# <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> will be executed as the user root<br><br>HTH<br>Magnus<br><a href="http://libriotech.no" target="_blank">libriotech.no</a><br></div></div>
</div><br>
</div><br>_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
<br></blockquote></div><br>Regards,<br>Amit Gupta<br>Nucsoft Osslabs<br><a href="http://www.osslabs.biz">www.osslabs.biz</a><br>