how to use perl scrips and perl modules in koha
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
François Patte a écrit :
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
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?
1- Hello from France, Marseille & welcome into Koha project, heavily developped by frenchies, as you probably know ;-) 2- do you know there is a french list on www.koha-fr.org, feel free to subscribe. 3- we speak of the server administrator here. Can be run as any user provided it can read /etc/koha.conf file (depends on your Un*x/Linux installation method) 4- export PERL5LIB=/usr/local/koha/intranet/modules should solve the problem (NOT EXPORT ..../modules/C4 : NO C4 at the end) Hope This Helps -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
On 2004-05-07 12:39:12 +0100 François Patte <Francois.Patte@math-info.univ-paris5.fr> wrote:
When you try to modify some links in the Koha database you are warned to ask your system administrator to run some script...
This one:
3 Koha administrator?
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!
What -I command?
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?
Maybe. Quite likely, but probably not about this. Not as far as I know. -- MJR/slef My Opinion Only and possibly not of any group I know. http://mjr.towers.org.uk/ http://www.ttllp.co.uk/ for creative copyleft computing
MJ Ray a écrit :
Or is there a way to run these koha scripts from the web interface?
Not as far as I know.
Definetly no, for 2 reasons : * some of those scripts are really dangerous and a single clic could have dramatically stupid consequences. * those scripts needs a looonnnggg time to execute. More than a classic Apache timeout anyway ;-) -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
Quoting MJ Ray <mjr@dsl.pipex.com>:
On 2004-05-07 12:39:12 +0100 François Patte <Francois.Patte@math-info.univ-paris5.fr> wrote:
When you try to modify some links in the Koha database you are warned to ask your system administrator to run some script...
This one:
3 Koha administrator?
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!
What -I command? # perl -I /path/to/modules script.pl
participants (4)
-
François Patte -
Joshua Ferraro -
MJ Ray -
paul POULAIN