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 <[email protected]> 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<[email protected]>: >> >>> 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: [email protected] > 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 > [email protected] > http://lists.katipo.co.nz/mailman/listinfo/koha > _______________________________________________ Koha mailing list http://koha-community.org [email protected] http://lists.katipo.co.nz/mailman/listinfo/koha

