Hi I'm a new user trying to migrate from Book Collection to Koha under windows. My problem is in trying to bulk import records into Koha using the perl script "bulkmarcimport.pl" #set up enviroment vars set KOHA_CONF=c:\etc\koha.conf set PERL5LIB=c:\usr\koha228\intranet\modules #from cmd window runnning C:\usr\koha228\scripts\misc\migration_tools>bulkmarcimport.pl -c MARC21 -file somemarc.mrc #I get the following error message Can't locate MARC/Charset.pm in @INC (@INC contains: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib .) at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14. BEGIN failed--compilation aborted at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14. #Running perl -V gives values for @inc @INC: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib . It doesn't work either when I also tried c:\usr\koha228\intranet\modules\C4 I've also run the latest ActivePerl 5.8.x Modules for Koha from http://www.koha.rwjr.com/ What am I doing wrong? Koha version: 2.2.8 (Win32) OS version Microsoft Windows XP [Version 5.1.2600] Perl version: 5.008008 MySQL version: mysql Ver 14.7 Distrib 4.1.22, for Win32 (ia32) Apache 2.2.4 (Win32) Thanks in advance ray -- View this message in context: http://www.nabble.com/Koha-2.2.8-Win32-bulkmarcimport.pl-Error-tf4643497.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Try this: set PERL5LIB=c:\usr\lib\perl\5.8 Perl is not finding the module you should have installed already, and it looks like @INC doesn't have the usual base perl directory in it. Without it, you should expect this command to fail likewise: perl -e "use MARC::Charset;" --joe atzberger On 10/17/07, Amaravati <ray.penkeyman@gmail.com> wrote:
Hi I'm a new user trying to migrate from Book Collection to Koha under windows.
My problem is in trying to bulk import records into Koha using the perl script "bulkmarcimport.pl" #set up enviroment vars set KOHA_CONF=c:\etc\koha.conf set PERL5LIB=c:\usr\koha228\intranet\modules
#from cmd window runnning C:\usr\koha228\scripts\misc\migration_tools>bulkmarcimport.pl -c MARC21 -file somemarc.mrc
#I get the following error message
Can't locate MARC/Charset.pm in @INC (@INC contains: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib .) at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14.
BEGIN failed--compilation aborted at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14.
#Running perl -V gives values for @inc
@INC: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib .
It doesn't work either when I also tried c:\usr\koha228\intranet\modules\C4 I've also run the latest ActivePerl 5.8.x Modules for Koha from http://www.koha.rwjr.com/
What am I doing wrong?
Koha version: 2.2.8 (Win32) OS version Microsoft Windows XP [Version 5.1.2600] Perl version: 5.008008 MySQL version: mysql Ver 14.7 Distrib 4.1.22, for Win32 (ia32) Apache 2.2.4 (Win32)
Thanks in advance
ray
-- View this message in context: http://www.nabble.com/Koha-2.2.8-Win32-bulkmarcimport.pl-Error-tf4643497.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Thanks that's a starter for 10 anyway. I may have to try a re-install of PERL as I don't have that path you quoted I only have c:/usr/lib/... ray Joe Atzberger wrote:
Try this: set PERL5LIB=c:\usr\lib\perl\5.8
Perl is not finding the module you should have installed already, and it looks like @INC doesn't have the usual base perl directory in it.
Without it, you should expect this command to fail likewise: perl -e "use MARC::Charset;"
--joe atzberger
On 10/17/07, Amaravati <ray.penkeyman@gmail.com> wrote:
Hi I'm a new user trying to migrate from Book Collection to Koha under windows.
My problem is in trying to bulk import records into Koha using the perl script "bulkmarcimport.pl" #set up enviroment vars set KOHA_CONF=c:\etc\koha.conf set PERL5LIB=c:\usr\koha228\intranet\modules
#from cmd window runnning C:\usr\koha228\scripts\misc\migration_tools>bulkmarcimport.pl -c MARC21 -file somemarc.mrc
#I get the following error message
Can't locate MARC/Charset.pm in @INC (@INC contains: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib .) at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14.
BEGIN failed--compilation aborted at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14.
#Running perl -V gives values for @inc
@INC: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib .
It doesn't work either when I also tried c:\usr\koha228\intranet\modules\C4 I've also run the latest ActivePerl 5.8.x Modules for Koha from http://www.koha.rwjr.com/
What am I doing wrong?
Koha version: 2.2.8 (Win32) OS version Microsoft Windows XP [Version 5.1.2600] Perl version: 5.008008 MySQL version: mysql Ver 14.7 Distrib 4.1.22, for Win32 (ia32) Apache 2.2.4 (Win32)
Thanks in advance
ray
-- View this message in context: http://www.nabble.com/Koha-2.2.8-Win32-bulkmarcimport.pl-Error-tf4643497.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://www.nabble.com/Koha-2.2.8-Win32-bulkmarcimport.pl-Error-tf4643497.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Well I appear to have solved this problem by re-installing PERL but with an older binary ActivePerl-5.8.8.817-MSWin32-x86-257965.msi I was using:ActivePerl-5.8.8.820-MSWin32-x86-274739.msi And now the bulkmarcimport.pl now appears to work with ActivePerl-5.8.8.817-MSWin32-x86-257965.msi . PERL .820 should work with Koha 2.2.8 according to the ":: koha win32 downloads" page and out of desparation I had also applied the folllowing patches: R1-Updated Dec. 5, 2006 to include Net-Z3950-ZOOM R2-Updated Dec. 8, 2006 to include XSloader R3-Updated Dec. 27, 2006 to include MARC-charset, test-simple, Getopt-Long, Mail-RFC822-Address R4-Updated Jan. 8, 2007 fixed errors that caused DBD-mysql and MARC-charset to fail to install R5-Updated Jan. 20, 2007 to include Locale-PO and updated MARC-Record to 2.0RC Sourceforge version R7-Updated April 23, 2007 with updates to several modules including NET-Z3950-Zoom Hmmm never mind at least it works, I hope this helps anyone with a similar experiance. ray Amaravati wrote:
Hi I'm a new user trying to migrate from Book Collection to Koha under windows.
My problem is in trying to bulk import records into Koha using the perl script "bulkmarcimport.pl" #set up enviroment vars set KOHA_CONF=c:\etc\koha.conf set PERL5LIB=c:\usr\koha228\intranet\modules
#from cmd window runnning C:\usr\koha228\scripts\misc\migration_tools>bulkmarcimport.pl -c MARC21 -file somemarc.mrc
#I get the following error message
Can't locate MARC/Charset.pm in @INC (@INC contains: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib .) at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14.
BEGIN failed--compilation aborted at C:\usr\koha228\scripts\misc\migration_tools\bulkmarcimport.pl line 14.
#Running perl -V gives values for @inc
@INC: c:\usr\koha228\intranet\modules C:/usr/site/lib C:/usr/lib .
It doesn't work either when I also tried c:\usr\koha228\intranet\modules\C4 I've also run the latest ActivePerl 5.8.x Modules for Koha from http://www.koha.rwjr.com/
What am I doing wrong?
Koha version: 2.2.8 (Win32) OS version Microsoft Windows XP [Version 5.1.2600] Perl version: 5.008008 MySQL version: mysql Ver 14.7 Distrib 4.1.22, for Win32 (ia32) Apache 2.2.4 (Win32)
Thanks in advance
ray
-- View this message in context: http://www.nabble.com/Koha-2.2.8-Win32-bulkmarcimport.pl-Error-tf4643497.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
participants (2)
-
Amaravati -
Joe Atzberger