[Koha] run environment variables and koha-index-daemon command in terminal every time after the restart the computer

Nikunj Tyagi nikunj1 at gmail.com
Tue May 8 22:51:27 NZST 2012


I installed koha 3.8.0 in ubuntu 12.04 with koha sample data. environment
variables (Koha scripts) is add in /etc/cron.d/koha at installation time. .
indexing is not working after the restart machine and and run the
koha-index-daemon command, show following error

Can't locate C4/Context.pm in @INC (@INC contains:
/root/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int
/root/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int
/root/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at
/usr/local/share/perl/5.14.2/Koha/Contrib/Tamil/RecordReader.pm line 16.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.14.2/Koha/Contrib/Tamil/RecordReader.pm line 16.
Compilation failed in require at
/usr/local/share/perl/5.14.2/Koha/Contrib/Tamil/Indexer.pm line 13.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.14.2/Koha/Contrib/Tamil/Indexer.pm line 13.
Compilation failed in require at
/usr/local/share/perl/5.14.2/Koha/Contrib/Tamil/IndexerDaemon.pm line 13.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.14.2/Koha/Contrib/Tamil/IndexerDaemon.pm line 13.
Compilation failed in require at /usr/local/bin/koha-index-daemon line 17.
BEGIN failed--compilation aborted at /usr/local/bin/koha-index-daemon line
17.


after run the export KOHA_CONF=/etc/koha/koha-conf.xml, export
PERL5LIB=/usr/share/koha/lib and koha-index-daemon. command manually in
terminal
indexing is run perfectly and search all new records.  How i can solve the
indexing problem.

Nikunj


More information about the Koha mailing list