[Koha] can't locate C4/xxx.pm => IMPORTANT

Paul POULAIN paul.poulain at free.fr
Tue Aug 10 19:20:53 NZST 2004


Michael Watson wrote:

>I'm wondering if the problem is that I need to define mappings in 
>parameters->links koha MARC Db. I see a message there saying that if I change 
>the link between a MARC subfield and a non-MARC field, I need to run the 
>misc/rebuildnonmarc.pl script. But when I try to do that, I get an error 
>message that says that the script can't locate C4/Content.pm in @INC (error 
>message follows).
>
>./rebuildnonmarc.pl
>Can't locate C4/Context.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/
>i586-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/
>i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/
>site_perl /usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi /usr/lib/
>perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl .) at ./rebuildnonmarc.pl 
>line 10.
>BEGIN failed--compilation aborted at ./rebuildnonmarc.pl line 10.
>
>I know the location of the C4 directory, which does contain a Context.pm. This 
>seems like some kind of path error--the directory containing this module 
>evidently isn't stored in @INC. I tried pushing it there by adding a line to 
>readuilbnonmarc.pl, but that didn't work. Does anyone know what the problem 
>might be?
>  
>
type :
export PERL5LIB=/path/to/koha
before rebuildnonmarc.pl
REMEMBER this, as it's mandatory for most scripts.

-- 
Paul POULAIN
Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre http://www.koha-fr.org)




More information about the Koha mailing list