Bug 13031 - create_koc_db.pl shows error Can't locate C4/Context.pm in @INC on execution
Summary: create_koc_db.pl shows error Can't locate C4/Context.pm in @INC on execution
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: 3.14
Hardware: All Linux
: P5 - low critical (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-06 13:45 UTC by Maya Das
Modified: 2019-06-27 09:24 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!