Hi David and Indranil

Thank you very much, this works!

Interestingly addin variable PERL5LIB was never before necessary when I ran "bulkmarcimport.pl" (and I do this a lot).

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 m...@adminkuhn.ch · W www.adminkuhn.ch



Am 28.10.22 um 13:14 schrieb David Schmidt:
hi

add that path to your PERL5LIB env var

$ export PERL5LIB=/usr/share/koha/lib
$ /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml
-framework=ABC -file TITEL.marcxml -v 2

cheers
david


Am 28.10.22 um 13:06 schrieb Indranil Das Gupta:
> Hi Michael
>
>  From the snippet shared by you, it seems that you are missing:
>
> export PERL5LIB="/usr/share/koha/lib"
>
> cheers
> -idg



On Fri, 28 Oct 2022, at 1:02 PM, Michael Kuhn wrote:
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":

# export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml
# /usr/share/koha/bin/migration_tools/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 line 13.
BEGIN failed--compilation aborted at
/usr/share/koha/bin/migration_tools/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" 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 m...@adminkuhn.ch <mailto:m...@adminkuhn.ch> · W www.adminkuhn.ch <http://www.adminkuhn.ch>
_______________________________________________
Koha-devel mailing list
koha-de...@lists.koha-community.org <mailto:koha-de...@lists.koha-community.org> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel <https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel> website : https://www.koha-community.org/ <https://www.koha-community.org/>
git : https://git.koha-community.org/ <https://git.koha-community.org/>
bugs : https://bugs.koha-community.org/ <https://bugs.koha-community.org/>



_______________________________________________
Koha-devel mailing list
koha-de...@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/


_______________________________________________

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

Reply via email to