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
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/
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/
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/
Hi David You wrote:
could it be that you were executing the command with a different user?
No, I definitely have always run the command as Linux user "root". The only difference I am aware of is this time I was first running the command under Koha 22.05. 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
This command has probably been changed since the last time you used it to be used with the koha-shell or koha-foreach scripts that come with the koha-common debian package. Those scripts set the config and perl include environment. On Fri, Oct 28, 2022 at 7:51 AM Michael Kuhn <mik@adminkuhn.ch> wrote:
Hi David
You wrote:
could it be that you were executing the command with a different user?
No, I definitely have always run the command as Linux user "root". The only difference I am aware of is this time I was first running the command under Koha 22.05.
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/
-- Michael Hafen Washington County School District Technology Department Systems Analyst
On 29/10/22 12:34 am, 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
hi Michael i think it's always been necessary to have the PERL5LIB set correctly
Are you by chance running the command in the root shell? You should always run it inside koha-shell El vie, 28 oct 2022 8:03, Michael Kuhn <mik@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":
# 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 mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
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@adminkuhn.ch · W www.adminkuhn.ch
El vie, 28 oct 2022 8:03, Michael Kuhn <mik@adminkuhn.ch <mailto:mik@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@adminkuhn.ch <mailto:mik@adminkuhn.ch> · W www.adminkuhn.ch <http://www.adminkuhn.ch> _______________________________________________
Koha mailing list http://koha-community.org <http://koha-community.org> Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha <https://lists.katipo.co.nz/mailman/listinfo/koha>
Yeah, the docs are really generic, and there are several ways to install Koha. Packages (i.e. having koha-shell) is one of them. Please file an issue on the manual's project so we document it better. Regarding the fact it worked before, have you changed the server? It is not working because of the lack of some environment variables being set, which is usually the case when we reinstall on a new server and forgot all the tweaks we did over time. I've been there, many times heh. Regardless, running things as root can cause trouble with logs and lock files permissions. Some default cronjobs can fail to run because of that, hence the recommendation. There are also security concerns but that's out of the scope here. El sáb, 29 oct 2022 5:11, Michael Kuhn <mik@adminkuhn.ch> escribió:
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@adminkuhn.ch · W www.adminkuhn.ch
El vie, 28 oct 2022 8:03, Michael Kuhn <mik@adminkuhn.ch <mailto:mik@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@adminkuhn.ch <mailto:mik@adminkuhn.ch> · W www.adminkuhn.ch < http://www.adminkuhn.ch> _______________________________________________
Koha mailing list http://koha-community.org < http://koha-community.org> Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha <https://lists.katipo.co.nz/mailman/listinfo/koha>
Hi Tomas You wrote:
Yeah, the docs are really generic, and there are several ways to install Koha. Packages (i.e. having koha-shell) is one of them. Please file an issue on the manual's project so we document it better.
I have now filed https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32059 (How to run scripts found under https://perldoc.koha-community.org/)
Regarding the fact it worked before, have you changed the server? It is not working because of the lack of some environment variables being set, which is usually the case when we reinstall on a new server and forgot all the tweaks we did over time. I've been there, many times heh.
No, it was a completely new server. I have done this many times on many different new servers in the past and it always worked. But yes, missing environment variables are a pain.
Regardless, running things as root can cause trouble with logs and lock files permissions. Some default cronjobs can fail to run because of that, hence the recommendation. There are also security concerns but that's out of the scope here.
Since it also worked using the command "koha-shell" that's how I'll do it in the future: sudo koha-shell -c "/usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml -framework=frameworkcode -file file.marcxml -v 2" instancename 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
El sáb, 29 oct 2022 5:11, Michael Kuhn <mik@adminkuhn.ch <mailto:mik@adminkuhn.ch>> escribió:
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 <http://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 <http://bulkmarcimport.pl> -b -m marcxml -framework=ABC -file TITEL.marcxml -v 2" library
Unfortunately https://perldoc.koha-community.org/misc/migration_tools/bulkmarcimport.html <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@adminkuhn.ch <mailto:mik@adminkuhn.ch> · W www.adminkuhn.ch <http://www.adminkuhn.ch>
> El vie, 28 oct 2022 8:03, Michael Kuhn <mik@adminkuhn.ch <mailto:mik@adminkuhn.ch> > <mailto:mik@adminkuhn.ch <mailto:mik@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> > <http://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> > <http://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> > <http://bulkmarcimport.pl <http://bulkmarcimport.pl>> line 13. > BEGIN failed--compilation aborted at > /usr/share/koha/bin/migration_tools/bulkmarcimport.pl <http://bulkmarcimport.pl> > <http://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> <http://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@adminkuhn.ch <mailto:mik@adminkuhn.ch> > <mailto:mik@adminkuhn.ch <mailto:mik@adminkuhn.ch>> · W www.adminkuhn.ch <http://www.adminkuhn.ch> <http://www.adminkuhn.ch <http://www.adminkuhn.ch>> > _______________________________________________ > > Koha mailing list http://koha-community.org <http://koha-community.org> <http://koha-community.org <http://koha-community.org>> > Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz> <mailto:Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz>> > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha <https://lists.katipo.co.nz/mailman/listinfo/koha> > <https://lists.katipo.co.nz/mailman/listinfo/koha <https://lists.katipo.co.nz/mailman/listinfo/koha>> >
participants (5)
-
David Schmidt -
Mason James -
Michael Hafen -
Michael Kuhn -
Tomas Cohen Arazi