User manual

Chapter 10
If a bug fix is available, but has not been pushed into the Koha repository, you can
download the patch from the bug reports, and try to apply it yourself. To apply a
patch, we use the command
git apply:
koha@linux: /home /koha /kohaclone # git apply name -of- patch.patch
Command line programs- environment
variables not exported
If you don't have Koha's environment variables set up correctly for the Linux
shell, you will see errors like this when running command -line programs, such
as bulkmarcimport.pl:
íi85- 160:/ home / koha /kohaclone /misc /migration_tools # perl bulkmarcimport.
pl - -h
Can't locate C4 /Context.pm in @INC
( @INC contains: /usr /lib /per15 /5.10.0/
i586- linux- thread -multi /usr /lib /per15 /5.10.0 /usr /lib /perl5 /site_
perl /5.10.0 /i586 - linux- thread -multi /usr /lib /per15 /site_perl /5.10.0 /
usr /lib /per15 /vendor_perl /5.10.0 /i586 - linux- thread -multi /usr /lib /per15/
vendor_perl /5.10.0 /usr /lib /per15 /vendor _perl .)
at bulkmarcimport.pl
line 21.
BEGIN failed -- compilation aborted at bulkmarcimport.pl line 21.
To avoid this problem, we need to export the
KOHA_CONF and PERL5LIB environment
variables:
koha @linux: /home /koha /kohaclone # export KOHA_CONF= /etc /koha -dev /etc/
koha- conf.xml
koha @linux: /home /koha /kohaclone# export PERL5LIB= /home /koha /kohaclone
To set these up to be persistent across sessions, we add these lines to the
/etc /bash.
bashrc file in Debian, and to the
/etc /bash. bashrc . local file in openSuSE.
[213]