<html>
<body>
Having experienced a few glitches ourselves, here are some extracts from
our "cheat sheet" (nelson is the name of our Debian/Ubuntu
server with Koha 3.6.1 installed and happily working):<br><br>
*** do mysql dump FIRST ***<br>
*** do not go near link_bibs_to_authorities.pl ***<br><br>
paul@nelson:/$ cd /usr/share/koha<br><br>
Now su to the proper user:<br><br>
paul@nelson:/usr/share/koha$ su koha<br><br>
Now for the authorities (note include envars on command line)<br><br>
koha@nelson:/usr/share/koha$ KOHA_CONF=/etc/koha/koha-conf.xml
PERL5LIB=/usr/share/koha/lib ./bin/migration_tools/rebuild_zebra.pl -a -r
-v<br><br>
Lastly, biblios (note -x without which the rebuild fails)<br><br>
koha@nelson:/usr/share/koha$ KOHA_CONF=/etc/koha/koha-conf.xml
PERL5LIB=/usr/share/koha/lib ./bin/migration_tools/rebuild_zebra.pl -b -r
-v -x<br><br>
Best - Paul<br><br>
At 12:17 PM 1/21/2012 -0500, Chris Nighswonger wrote:<br>
<blockquote type=cite class=cite cite>Hi Bruce,<br><br>
The correct paths for your installation would have been given in the
notes produced at the end of running Makefile.PL (not sure where this
would show up if you used the deb packages). These paths will *have* to
be correct in order for Koha related cli scripts to run properly. Perhaps
someone more familiar with the deb packages could help if that is,
indeed, what you used.<br><br>
If the paths you selected are correct, then I'm out of ideas for the
moment.<br><br>
Kind Regards,<br>
Chris<br><br>
<br>
On Sat, Jan 21, 2012 at 10:16 AM, Bruce A Metcalf
<<a href="mailto:Consuls@augustansociety.org">Consuls@augustansociety.org</a>>
wrote:
<dl>
<dd>Chris Nighswonger wrote:
<dd>Have a read at these FAQ's:<br><br>
<dd><a href="http://koha-community.org/documentation/faq/searching/">http://koha-community.org/documentation/faq/searching/</a>
<dd>Pay careful attention to the solution for question #4. It appears
you've not exported the proper env vars.<br><br>
</dl><br>
It sounds like you're recommending:<br><br>
<dl>
<dd>1. Check that you are exporting the two environmental variables
<dd>necessary to run Koha scripts from the command line. These are
(modify
<dd>to fit paths on your system):<br>
<dd>PERL5LIB=/path/to/koha
<dd>KOHA_CONF=/path/to/koha-conf.xml<br><br>
</dl><br>
Which sounds not unreasonable. I set:<br><br>
KOHA_CONF=/etc/koha/koha-conf.xml<br><br>
Which seems reasonable. I then set:<br><br>
PERL5LIB=/usr/share/koha/lib<br><br>
I chose this because the failure message for
<a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a> claims it can't
locate C4/Context.pm in @INC, which includes /etc/perl, and where that
file can be found.<br><br>
It would appear that these choices were incorrect, or that I've made some
other important error, as these two changes make no change in the failure
message when I run
<a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a>.<br><br>
I *did* warn y'all I was a newbie....<br><br>
With thanks,<br><br>
/ Bruce /<br>
Bruce A. Metcalf<br>
Library Director<br>
The Augustan Society Library<br><br>
<dl>
<dd>On Fri, Jan 20, 2012 at 9:01 PM, Bruce Metcalf
<<a href="mailto:bruce.metcalf@figzu.com">bruce.metcalf@figzu.com</a>
<<a href="mailto:bruce.metcalf@figzu.com" eudora="autourl">mailto:bruce.metcalf@figzu.com</a>>>
wrote:<br>
<dd>  Eric Bégin wrote:<br>
<dd>Â Â Â Â Â Â All three commands fail
with a variety of messages, but all
<dd>Â Â Â Â Â Â include "file not
found".<br>
<dd>Â Â Â Â Indeed, that doesn't look good.<br>
<dd>Â Â Â Â Can you provide the full output of the
rebuild_zebra -b -r -v<br>
<dd>Â Â bruce@library:/usr/share/__koha4/bin/migration_tools$
<dd>Â Â <a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a>
<<a href="http://rebuild_zebra.pl/" eudora="autourl">http://rebuild_zebra.pl</a>> -b -r -v<br>
<dd>Â Â Can't locate Koha.pm in @INC (@INC contains: /etc/perl
<dd>Â Â /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
<dd>Â Â /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
<dd>Â Â /usr/local/lib/site_perl .) at ./<a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a>
<dd>Â Â <<a href="http://rebuild_zebra.pl/" eudora="autourl">http://rebuild_zebra.pl</a>> line 5.<br>
<dd>Â Â BEGIN failed--compilation aborted at ./<a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a>
<dd>Â Â <<a href="http://rebuild_zebra.pl/" eudora="autourl">http://rebuild_zebra.pl</a>> line 5.<br>
<dd>Â Â Hope that helps,
<dd>Â Â Bruce<br>
<br>
<dd>Â Â Â Â On <a href="tel:2012-01-19%2009">2012-01-19 09</a> <tel:2012-01-19%2009>:41, Bruce Metcalf wrote:
<dd>Â Â Â Â Â Â Bruce Metcalf wrote:<br>
<dd>Â Â Â Â Â Â Â Â Â Â I am a new user of Koha, and have had my Linux guru
<dd>Â Â Â Â Â Â Â Â Â Â (who had not
<dd>Â Â Â Â Â Â Â Â Â Â seen Koha prior to this work) install version 3.6.2
<dd>Â Â Â Â Â Â Â Â Â Â under Debian
<dd>Â Â Â Â Â Â Â Â Â Â Squeeze on an otherwise empty virtual server.<br>
<dd>Â Â Â Â Â Â Â Â Â Â All appears to be going exactly as it should.<br>
<dd>Â Â Â Â Â Â Â Â Â Â owever, the public OPAC shows no books in the
<dd>Â Â Â Â Â Â Â Â Â Â collection.<br>
<dd>      Eric Bégin wrote:<br>
<dd>Â Â Â Â Â Â Â Â Get a look at this link. It shows the most common
<dd>Â Â Â Â Â Â Â Â problems when you
<dd>Â Â Â Â Â Â Â Â get not result in the OPAC.<br>
<dd>Â Â Â Â Â Â Â Â <a href="http://koha-community.org/__documentation/faq/searching/">http://koha-community.org/__documentation/faq/searching/</a><br>
<dd>Â Â Â Â Â Â Â Â <<a href="http://koha-community.org/documentation/faq/searching/" eudora="autourl">http://koha-community.org/documentation/faq/searching/</a>><br>
<dd>Â Â Â Â Â Â Â Â Don't hesitate to come back and ask for more info if
<dd>Â Â Â Â Â Â Â Â this link doesn't solve your problem.<br>
<dd>Â Â Â Â Â Â This page seems to suggest:<br>
<dd>Â Â Â Â Â Â zebraidx -x /.../zebra-biblios.cfg drop biblios zebraidx -c
<dd>Â Â Â Â Â Â /.../zebra-biblios.cfg commit <a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a>
<dd>Â Â Â Â Â Â <<a href="http://rebuild_zebra.pl/" eudora="autourl">http://rebuild_zebra.pl</a>> -b -r -v<br>
<br>
<dd>Â Â Â Â Â Â All three commands fail with a variety of messages, but all
<dd>Â Â Â Â Â Â include
<dd>Â Â Â Â Â Â "file not found".<br>
<dd>Â Â Â Â Â Â I'm thinking that there is an important configuration or
<dd>Â Â Â Â Â Â initialization that hasn't been completed?<br>
<dd>Â Â Â Â Â Â Regards, / Bruce / Bruce A. Metcalf Executive Director The
<dd>Â Â Â Â Â Â Augustan
<dd>Â Â Â Â Â Â Society Library<br><br>
</dl><br>
_______________________________________________<br>
Koha mailing list <a href="http://koha-community.org/" eudora="autourl">http://koha-community.org</a><br>
Koha@lists.katipo.co.nz<br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" eudora="autourl">http://lists.katipo.co.nz/mailman/listinfo/koha</a></blockquote>
<x-sigsep><p></x-sigsep>
---<br>
Maritime heritage and history, preservation and conservation, <br>
research and education through the written word and the arts.<br>
<<a href="http://ultramarine.ca/" eudora="autourl">http://UltraMarine.ca</a>>, <<a href="http://aandc.org/" eudora="autourl">http://AandC.org</a>> and <<a href="http://mardoc.ca/" eudora="autourl">http://</a>MarDoc<a href="http://mardoc.ca/" eudora="autourl">.ca</a>><br>
</body>
</html>