Fwd: Re: Index build - even without zebra?
Chris or others, Did I miss something in the install? I tried adding things to the environment as suggested, but where things are choking are with the perl include locations: ./bin/migration_tools/rebuild_nozebra.pl Can't locate C4/Context.pm in @INC (@INC contains: /shared/perl/5.10.1/lib/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/5.10.1 /shared/perl/5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/site_perl/5.10.1 .) at ./bin/migration_tools/rebuild_nozebra.pl line 3. BEGIN failed--compilation aborted at ./bin/migration_tools/rebuild_nozebra.pl line 3. I can see that it is not looking in /shared/koha/soft/lib for the proper location for C4, but how do I best update the software so that the @INC path is properly set up? Thanks, Tom On 04/25/2011 08:38 PM, Chris Cormack wrote:
On 26 Apr 2011 10:05, "Tom Hanstra" <tom@nd.edu <mailto:tom@nd.edu>> wrote:
What exactly are the C4 modules? Both rebuild_nozebra.pl
<http://rebuild_nozebra.pl> and
rebuild_zebra.pl <http://rebuild_zebra.pl> call for C4 modules, so it seems that neither will work until I resolve these perl modules.
I'll work on my Zebra setup, but it seems like I also have to resolve these errors.
The C4 modules are what everything in Koha uses, so they will be there. If you are getting an error it will be because you haven't defined the path to the modules on the command line.
You can do this lots of ways, the INSTALL file lists a few, but its probably easiest to run export PERL5LIB=/path/to/where/the/C4/dir export KOHA_CONF=/path/to/
Check your koha-httpd.conf for the values you need
Chris
Thanks, Tom
On 04/25/2011 05:25 PM, Galen Charlton wrote:
Hi,
On Apr 25, 2011, at 3:57 PM, Tom Hanstra wrote:
OK, I have loaded some data from another database into my local
NoZebra mode is deprecated in 3.4.0 and is not necessarily well-supported before then.
But, there must be some other data rebuild or step I've missed. I know that there are records out there because there are some
No Result found!
No results match your search for “kw,wrdl: * ”
Maybe run rebuild_nozebra.pl <http://rebuild_nozebra.pl>? But
Koha. I don't have Zebra up and going yet, but I thought I could get a jump start by changing the parameters so that it would not use Zebra. pre-created lists which produce results. But every search I do results in no records found, including a basic wildcard search. ultimately, the real answer is to go ahead and finish getting Zebra up and running.
Regards,
Galen -- Galen Charlton VP, Data Services Equinox Software, Inc. / Your Library's Guide to Open Source email: gmc@esilibrary.com <mailto:gmc@esilibrary.com> direct: +1 352-215-7548 skype: gmcharlt web: http://www.esilibrary.com/
--
-----------------------------------------------------------------------------
Tom Hanstra Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 213 Hesburgh Library Email: tom@nd.edu
<mailto:tom@nd.edu>
Notre Dame, IN 46556
Any idiot can face a crisis, it is this day-to-day living that wears you out. Anton Chekhov
-----------------------------------------------------------------------------
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz> http://lists.katipo.co.nz/mailman/listinfo/koha
-- ----------------------------------------------------------------------------- Tom Hanstra Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 213 Hesburgh Library Email:tom@nd.edu Notre Dame, IN 46556 Any idiot can face a crisis, it is this day-to-day living that wears you out. Anton Chekhov ----------------------------------------------------------------------------- -- ----------------------------------------------------------------------------- Tom Hanstra Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 213 Hesburgh Library Email: tom@nd.edu Notre Dame, IN 46556 Any idiot can face a crisis, it is this day-to-day living that wears you out. Anton Chekhov -----------------------------------------------------------------------------
2011/4/26 Tom Hanstra <tom@nd.edu>:
Chris or others,
Did I miss something in the install? I tried adding things to the environment as suggested, but where things are choking are with the perl include locations:
You shouldn't just add things to the environment. First check what is your actual 'env' so we know what tweaks you need.
./bin/migration_tools/rebuild_nozebra.pl Can't locate C4/Context.pm in @INC (@INC contains: /shared/perl/5.10.1/lib/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/5.10.1 /shared/perl/5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/site_perl/5.10.1 .) at ./bin/migration_tools/rebuild_nozebra.pl line 3. BEGIN failed--compilation aborted at ./bin/migration_tools/rebuild_nozebra.pl line 3.
I can see that it is not looking in /shared/koha/soft/lib for the proper location for C4, but how do I best update the software so that the @INC path is properly set up?
Run it like this: PERL5LIB=/shared/koha/soft/lib ./bin/migration_tools/rebuild_nozebra.pl Regards To+
Well, that is the first time I've used syntax like that, but it worked: 1048$ PERL5LIB=/shared/koha/soft/lib ./bin/migration_tools/rebuild_nozebra.pl Warning: program compiled against libxml 207 using older 206 Warning: XML::LibXML compiled against libxml2 20703, but runtime libxml2 is older 20626 Warning: program compiled against libxml 207 using older 206 Warning: XML::LibXSLT compiled against libxslt 10120, but runtime libxslt is older 10117 *********************************** ***** building BIBLIO indexes ***** *********************************** 8589 Inserting records... 99777 biblios done *********************************** ***** building AUTHORITIES indexes ***** *********************************** 2033 Inserting... 5788 authorities done What additional, if any, steps do I need to take from here? Do I need to do something more to get koha in general to use/include that directory? Thanks, Tom On 04/26/2011 10:21 AM, Tomas Cohen Arazi wrote:
2011/4/26 Tom Hanstra<tom@nd.edu>:
Chris or others,
Did I miss something in the install? I tried adding things to the environment as suggested, but where things are choking are with the perl include locations:
You shouldn't just add things to the environment. First check what is your actual 'env' so we know what tweaks you need.
./bin/migration_tools/rebuild_nozebra.pl Can't locate C4/Context.pm in @INC (@INC contains: /shared/perl/5.10.1/lib/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/5.10.1 /shared/perl/5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/site_perl/5.10.1 .) at ./bin/migration_tools/rebuild_nozebra.pl line 3. BEGIN failed--compilation aborted at ./bin/migration_tools/rebuild_nozebra.pl line 3.
I can see that it is not looking in /shared/koha/soft/lib for the proper location for C4, but how do I best update the software so that the @INC path is properly set up?
Run it like this:
PERL5LIB=/shared/koha/soft/lib ./bin/migration_tools/rebuild_nozebra.pl
Regards To+
-- ----------------------------------------------------------------------------- Tom Hanstra Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 213 Hesburgh Library Email: tom@nd.edu Notre Dame, IN 46556 Any idiot can face a crisis, it is this day-to-day living that wears you out. Anton Chekhov -----------------------------------------------------------------------------
In Ubuntu I would set that "global" environment variables in the file /etc/environment like this: <code> KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/shared/koha/soft/lib </code> For your cronjobs you can add those lines before the jobs definition, or to be sure call the script just like you did and worked, smth like: * * * * * koha PERL5LIB=/shared/koha/soft/lib /shared/koha/soft/bin/migration_tools/rebuild_nozebra.pl in /etc/cron.d/koha Regards To+ On Tue, Apr 26, 2011 at 12:14 PM, Tom Hanstra <tom@nd.edu> wrote:
Well, that is the first time I've used syntax like that, but it worked:
1048$ PERL5LIB=/shared/koha/soft/lib ./bin/migration_tools/rebuild_nozebra.pl Warning: program compiled against libxml 207 using older 206 Warning: XML::LibXML compiled against libxml2 20703, but runtime libxml2 is older 20626 Warning: program compiled against libxml 207 using older 206 Warning: XML::LibXSLT compiled against libxslt 10120, but runtime libxslt is older 10117 *********************************** ***** building BIBLIO indexes ***** *********************************** 8589 Inserting records... 99777 biblios done
*********************************** ***** building AUTHORITIES indexes ***** *********************************** 2033 Inserting... 5788 authorities done
What additional, if any, steps do I need to take from here? Do I need to do something more to get koha in general to use/include that directory?
Thanks, Tom
On 04/26/2011 10:21 AM, Tomas Cohen Arazi wrote:
2011/4/26 Tom Hanstra<tom@nd.edu>:
Chris or others,
Did I miss something in the install? I tried adding things to the environment as suggested, but where things are choking are with the perl include locations:
You shouldn't just add things to the environment. First check what is your actual 'env' so we know what tweaks you need.
./bin/migration_tools/rebuild_nozebra.pl Can't locate C4/Context.pm in @INC (@INC contains: /shared/perl/5.10.1/lib/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/5.10.1 /shared/perl/5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi /shared/perl/5.10.1/lib/site_perl/5.10.1 .) at ./bin/migration_tools/rebuild_nozebra.pl line 3. BEGIN failed--compilation aborted at ./bin/migration_tools/rebuild_nozebra.pl line 3.
I can see that it is not looking in /shared/koha/soft/lib for the proper location for C4, but how do I best update the software so that the @INC path is properly set up?
Run it like this:
PERL5LIB=/shared/koha/soft/lib ./bin/migration_tools/rebuild_nozebra.pl
Regards To+
--
----------------------------------------------------------------------------- Tom Hanstra Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 213 Hesburgh Library Email: tom@nd.edu Notre Dame, IN 46556
Any idiot can face a crisis, it is this day-to-day living that wears you out. Anton Chekhov -----------------------------------------------------------------------------
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Tom Hanstra -
Tomas Cohen Arazi