Thank you Mark for the warning and suggestions. The truth is I've had some unix 
experience in the distant past; instead of copying anything, I'd link so that I 
could easily revert to the original state.

As I've mentioned before, I use a ready-made VM, the reason that I don't ask 
the provider of that image directly is that his (and your) replies will be 
available to us all, for all current and future users of his appliance.

/etc/environment is empty in my installation, I've updated /home/koha/.bashrc 
instead, as per Ian's instructions.

Kind regards,
Manos

P.S. I do miss the good old unix days when all I had to check was a .profile 


-----Original Message-----
From: Mark Tompsett [mailto:mtomp...@hotmail.com] 
Sent: Thursday, September 20, 2012 8:30 AM
To: Manos PETRIDIS; 'anjoze'
Cc: koha@lists.katipo.co.nz
Subject: Re: [Koha] Browse by hierarchy - Links not working

Greetings,

DISCLAIMER: THIS FEEDBACK DOES NOT APPLY TO EVERYONE, PLEASE DON'T JUST TRY 
THIS BECAUSE YOU HAVE A PROBLEM.

> About your problem *Can't locate C4/Context.pm in @INC* Someone in 
> this forum found this solution:
> Copying C4 directory to /etc/perl/ should solve your problem:
> cp -a /usr/share/koha/lib/C4/  /etc/perl/

This is the WRONG solution. Yes, it works, but upgrading your koha in the 
future becomes a nightmare!

There are supposed to be two environment variables defined:
$KOHA_CONF
$PERL5LIB
If you do not have these defined, you will encounter problems running Koha 
scripts.

(WARNING! WARNING! WARNING! I AM NOT RESPONSIBLE IF YOU DO NOT READING
CAREFULLY.)
*IF* (IF, IF, IF, IF, IF) PERL5LIB is not (I repeat NOT, NOT, NOT, NOT) defined 
at all, and given the results of your search:
(DO NOT DO THIS IF PERL5LIB IS DEFINED, BECAUSE YOU COULD BREAK SOMETHING
ELSE!)
$ export PERL5LIB=/home/koha/kohaclone

Follow up questions:
If you have a kohaclone directory, how did you answer the build questions?
If you didn't build this, and it is a virtual machine image, ask the provider 
of that image.

One potential workaround, if your system is a koha only system:
Under Ubuntu, and perhaps other debian-based OSes (though I haven't tested
them) you can add to the bottom of /etc/environment (as root):
PERL5LIB=/home/koha/kohaclone
Log out, and log back in, and this will be set for EVERY user on the system. 
This is only a good solution if the system is a koha only system. Otherwise, 
you will need to modify appropriate rc shell scripts in particular users home 
directories to set it.

GPML,
Mark Tompsett 

_______________________________________________
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to