[Koha] Koha 22.05.04: Can't locate Koha/Script.pm in @INC

Michael Kuhn mik at adminkuhn.ch
Sat Oct 29 21:10:59 NZDT 2022


Hi Thomas

You wrote:

 > Are you by chance running the command in the root shell?

Yes I am, I always did (and it worked up to Koha 21.11).

For now it worked using:

# export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml
# export PERL5LIB=/usr/share/koha/lib
# /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml 
-framework=ABC -file TITEL.marcxml -v 2

 > You should always run it inside koha-shell

OK - next time I'll try:

$ sudo koha-shell -c 
"/usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml 
-framework=ABC -file TITEL.marcxml -v 2" library

Unfortunately 
https://perldoc.koha-community.org/misc/migration_tools/bulkmarcimport.html 
does not give the correct information how to run this script.

Best wishes: Michael
-- 
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch


> El vie, 28 oct 2022 8:03, Michael Kuhn <mik at adminkuhn.ch 
> <mailto:mik at adminkuhn.ch>> escribió:
> 
>     Hi
> 
>     I am running a fresh installation of Koha 22.05.04 on Debian 11.
> 
>     I am trying to load some data using "bulkmarcimport.pl
>     <http://bulkmarcimport.pl>":
> 
>     # export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml
>     # /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
>     <http://bulkmarcimport.pl> -b -m marcxml
>     -framework=ABC -file TITEL.marcxml -v 2
>     Can't locate Koha/Script.pm in @INC (you may need to install the
>     Koha::Script module) (@INC contains: /etc/perl
>     /usr/local/lib/x86_64-linux-gnu/perl/5.32.1
>     /usr/local/share/perl/5.32.1
>     /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5
>     /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32
>     /usr/share/perl/5.32 /usr/local/lib/site_perl) at
>     /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
>     <http://bulkmarcimport.pl> line 13.
>     BEGIN failed--compilation aborted at
>     /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
>     <http://bulkmarcimport.pl> line 13.
> 
>     "Script.pm" seems to be there:
> 
>     # ls -al /usr/share/koha/lib/Koha/Script.pm
>     -rw-r--r-- 1 root root 4129 24. Aug 07:51
>     /usr/share/koha/lib/Koha/Script.pm
> 
>     How can I get script "bulkmarcimport.pl <http://bulkmarcimport.pl>"
>     to actually run?
> 
>     Best wishes: Michael
>     --
>     Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
>     Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
>     T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch
>     <mailto:mik at adminkuhn.ch> · W www.adminkuhn.ch <http://www.adminkuhn.ch>
>     _______________________________________________
> 
>     Koha mailing list http://koha-community.org <http://koha-community.org>
>     Koha at lists.katipo.co.nz <mailto:Koha at lists.katipo.co.nz>
>     Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>     <https://lists.katipo.co.nz/mailman/listinfo/koha>
> 




More information about the Koha mailing list