A new request with request id 6616 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is :

Title : Koha-devel Digest, Vol 203, Issue 18
Category :
Description :
Send Koha-devel mailing list submissions to
    koha-devel@lists.koha-community.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
or, via email, send a message with subject or body 'help' to
    koha-devel-request@lists.koha-community.org

You can reach the person managing the list at
    koha-devel-owner@lists.koha-community.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Koha-devel digest..."


Today's Topics:

1. Koha 22.05.04: Can't locate Koha/Script.pm in @INC (Michael Kuhn)
2. Re: Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(David Schmidt)
3. Re: Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(Michael Kuhn)
4. Re: Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(David Schmidt)


----------------------------------------------------------------------

Message: 1
Date: Fri, 28 Oct 2022 13:02:12 +0200
From: Michael Kuhn <mik@adminkuhn.ch>
To: Koha <koha@lists.katipo.co.nz>, Koha-devel
    <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Koha 22.05.04: Can't locate Koha/Script.pm in
    @INC
Message-ID: <1c518d2e-5fec-6cf6-0f3d-2bdd77f9ce2a@adminkuhn.ch>
Content-Type: text/plain; charset=UTF-8; format=flowed

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


------------------------------

Message: 2
Date: Fri, 28 Oct 2022 13:14:05 +0200
From: "David Schmidt" <mail@davidschmidt.at>
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Koha 22.05.04: Can't locate Koha/Script.pm
    in @INC
Message-ID: <1d7693a6-a881-4518-ae47-b03bd290dfc4@app.fastmail.com>
Content-Type: text/plain; charset="utf-8"

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

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 mik@adminkuhn.ch · W www.adminkuhn.ch
> _______________________________________________
> Koha-devel mailing list
> Koha-devel@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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20221028/ab2a3fb6/attachment-0001.htm>

------------------------------

Message: 3
Date: Fri, 28 Oct 2022 13:34:15 +0200
From: Michael Kuhn <mik@adminkuhn.ch>
To: koha-devel@lists.koha-community.org, Koha
    <koha@lists.katipo.co.nz>
Subject: Re: [Koha-devel] Koha 22.05.04: Can't locate Koha/Script.pm
    in @INC
Message-ID: <c011b231-d413-a998-53b3-02c301a6deaf@adminkuhn.ch>
Content-Type: text/plain; charset=UTF-8; format=flowed

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 mik@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 mik@adminkuhn.ch <mailto:mik@adminkuhn.ch>
>> · W www.adminkuhn.ch <http://www.adminkuhn.ch>
>> _______________________________________________
>> Koha-devel mailing list
>> Koha-devel@lists.koha-community.org
>> <mailto:Koha-devel@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-devel@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/




------------------------------

Message: 4
Date: Fri, 28 Oct 2022 15:44:56 +0200
From: "David Schmidt" <mail@davidschmidt.at>
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Koha 22.05.04: Can't locate Koha/Script.pm
    in @INC
Message-ID: <b0d12407-d579-4ef1-bc3f-dc3f0935ee47@app.fastmail.com>
Content-Type: text/plain; charset="utf-8"

could it be that you were executing the command with a different user?

On Fri, 28 Oct 2022, at 1:34 PM, Michael Kuhn wrote:
> 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 mik@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 mik@adminkuhn.ch <mailto:mik@adminkuhn.ch>
> >> · W www.adminkuhn.ch <http://www.adminkuhn.ch>
> >> _______________________________________________
> >> Koha-devel mailing list
> >> Koha-devel@lists.koha-community.org
> >> <mailto:Koha-devel@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-devel@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-devel mailing list
> Koha-devel@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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20221028/b51cd923/attachment.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
Koha-devel mailing list
Koha-devel@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/


------------------------------

End of Koha-devel Digest, Vol 203, Issue 18
*******************************************


NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.