Bug 13031

Summary: create_koc_db.pl shows error Can't locate C4/Context.pm in @INC on execution
Product: Koha Reporter: Maya Das <mydsls>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: critical    
Priority: P5 - low CC: gmcharlt, katrin.fischer, kyle.m.hall
Version: 3.14   
Hardware: All   
OS: Linux   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Maya Das 2014-10-06 13:45:25 UTC
While executing following command 

/usr/share/koha/bin/cronjobs/create_koc_db.pl -sqlite3


It's showing following error :


Can't locate C4/Context.pm in @INC 
(
@INC contains: 
/etc/perl 
/usr/local/lib/perl/5.10.1 
/usr/local/share/perl/5.10.1 
/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/cronjobs/create_koc_db.pl line 97.




Please anyone can look in the matter so we can prepare borrower database to make offline circulation


Regards
Abhijit Nikam
Comment 1 Katrin Fischer 2014-10-13 23:15:25 UTC
Hi,

this looks like you were running the script without the environment variables being set. If you are using packages, you can use the koha shell that will set them correctly for the instance you want to run the script for. If you need more help, please try the mailing list, thx!