[Koha] how to use perl scrips and perl modules in koha

François Patte Francois.Patte at math-info.univ-paris5.fr
Fri May 7 23:39:12 NZST 2004


When you try to modify some links in the Koha database you are warned to ask
your system administrator to run some script...

1- Which system administrator: Un*X/Linux one?

2- MySQL one?

3 Koha administrator?

Anyway, I was asked to run the script misc/rebuildnonmarc.pl This is a strange
way to indicate which script it is... I have found it:

/opt/koha/intranet/scripts/misc/rebuildnonmarc.pl

But after that it is impossible to run this script because perl is unable to
find some modules: here is the error message:

Can't locate C4/Context.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/5.8.2
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/5.8.1
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/5.8.0
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/5.8.2 /usr/lib/perl5/site_perl/5.8.3/5.8.1
/usr/lib/perl5/site_perl/5.8.3/5.8.0 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at ./rebuildnonmarc.pl line 10.
BEGIN failed--compilation aborted at ./rebuildnonmarc.pl line 10.


Well, of course, the Contex.pm modules is in
/usr/local/koha/intranet/modules/C4/

Try to run with -I command line option: same result!

I would like to know if it is a mistake I did during the installation of Koha? A
bug in the installer.pl script which I used to install? Or is there a way to
run these koha scripts from the web interface?

Thank you for a quick answer, I'm stymied!
--
François Patte

Inde :
Ecole française d'Extrême-Orient
Deccan College
Pune 411006
Tél : (00 91) (0) 20 26 69 39 04

France :
Université René Descartes - Paris 5
UFR de mathématiques et informatique
http://www.math-info.univ-paris5.fr/~patte



More information about the Koha mailing list