bulkmarcimport.pl problems
Hi All, I'm new to the list and Koha. Hope you can help. Seems like I'm so close, just stuck at the last hurdle? I think I have the installation (2.9.9 on Debian Etch, MySQL 5.0 Apache2) up and running more or less the way its meant to, but after many hours of reading though the documentation and trying various commands, STILL cannot bulk-import records from an ISO2709 file. dumpmarc.pl runs fine, easily recognising the six entries. However when I try to run bulkmarcimport.pl on the file it fails no matter what I do... EXAMPLE: ~/koha-2.2.9/scripts/misc/migration_tools# ./bulkmarcimport.pl -d -c UNIMARC --file test.mrk bash: ./bulkmarcimport.pl: Permission denied I have tried renaming the file and switching UNIMARK on in the admin preferences and many other things. Please, what am i doing wrong, what elese can I try? TIA, Bo
----- "Bo Schafers" <bo@weavebrain.com.au> wrote:
Hi All,
I'm new to the list and Koha. Hope you can help. Seems like I'm so close, just stuck at the last hurdle?
I think I have the installation (2.9.9 on Debian Etch, MySQL 5.0 Apache2) up and running more or less the way its meant to, but after many hours of reading though the documentation and trying various commands, STILL cannot bulk-import records from an ISO2709 file. dumpmarc.pl runs fine, easily recognising the six entries. However when I try to run bulkmarcimport.pl on the file it fails no matter what I do...
EXAMPLE: ~/koha-2.2.9/scripts/misc/migration_tools# ./bulkmarcimport.pl -d -c UNIMARC --file test.mrk bash: ./bulkmarcimport.pl: Permission denied
I have tried renaming the file and switching UNIMARK on in the admin preferences and many other things. Please, what am i doing wrong, what elese can I try? Try this:
# chmod 755 bulkmarcimport.pl Cheers, -- Joshua Ferraro SUPPORT FOR OPEN-SOURCE SOFTWARE President, Technology migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS jmf@liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS
M. Ferraro wrote:
Try this:
# chmod 755 bulkmarcimport.pl
Thanks for the superfast response. Yeah I tried that, but then I get the following when executing the script: Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at bulkmarcimport.pl line 26. BEGIN failed--compilation aborted at bulkmarcimport.pl line 26. So it's looking for: C4::Context ????? Tried to cpan C4::Context but it fails: Going to write /root/.cpan/Metadata Warning: Cannot install C4::Context, don't know what it is. So its some missing dependency, or that much-dreaded incompatibility of Koha with MySql 5. The trouble is in Debian only an empty transitional package is available of 4.1. Any more ideas, MUCHLY welcome :-) Bo
Bo Schafers <bo@weavebrain.com.au> wrote:
So it's looking for: C4::Context ?????
Tried to cpan C4::Context but it fails: Going to write /root/.cpan/Metadata Warning: Cannot install C4::Context, don't know what it is.
So its some missing dependency, or that much-dreaded incompatibility of Koha with MySql 5. The trouble is in Debian only an empty transitional package is available of 4.1.
The C4 modules are part of Koha. If you get an error about being unable to find C4 modules, then you need to give -I followed by the directory containing the C4 directory as in perl -I /usr/local/share/koha/modules bulkmarcimport.pl or set the PERL5LIB environment variable. Regards, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Experienced webmaster-developers for hire http://www.ttllp.co.uk/ Also: statistician, sysadmin, online shop builder, workers co-op. Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
----- "Bo Schafers" <bo@weavebrain.com.au> wrote:
M. Ferraro wrote:
Try this:
# chmod 755 bulkmarcimport.pl
Thanks for the superfast response. Yeah I tried that, but then I get the following when executing the script:
Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at bulkmarcimport.pl line 26. BEGIN failed--compilation aborted at bulkmarcimport.pl line 26.
So it's looking for: C4::Context ?????
Tried to cpan C4::Context but it fails: Going to write /root/.cpan/Metadata Warning: Cannot install C4::Context, don't know what it is.
So its some missing dependency, or that much-dreaded incompatibility of Koha with MySql 5. The trouble is in Debian only an empty transitional package is available of 4.1. OK, this has to do with your perl path. You will have to tell perl where to find C4 like this:
# perl -I /path/to/modules bulkmarcimport.pl BTW: AFAIK, Koha is fully compatible with 5.0 as of 2.2.9. If you run into a problem with 5.0, please let us know; but I doubt there will be any since LibLime has been running our 2.2 installations on 5.0 since Debian Etch was promoted to stable. Cheers, -- Joshua Ferraro SUPPORT FOR OPEN-SOURCE SOFTWARE President, Technology migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS jmf@liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS
Try exporting environmental variables before running bulkmarcimport. Something like: export PERL5LIB=/path/to/koha/intranet/modules For me on Debian Etch: export PERL5LIB=/usr/local/koha/intranet/modules --Jason On 5/17/07, Bo Schafers <bo@weavebrain.com.au> wrote:
Hi All,
I'm new to the list and Koha. Hope you can help. Seems like I'm so close, just stuck at the last hurdle?
I think I have the installation (2.9.9 on Debian Etch, MySQL 5.0 Apache2) up and running more or less the way its meant to, but after many hours of reading though the documentation and trying various commands, STILL cannot bulk-import records from an ISO2709 file. dumpmarc.pl runs fine, easily recognising the six entries. However when I try to run bulkmarcimport.pl on the file it fails no matter what I do...
EXAMPLE: ~/koha-2.2.9/scripts/misc/migration_tools# ./bulkmarcimport.pl -d -c UNIMARC --file test.mrk bash: ./bulkmarcimport.pl: Permission denied
I have tried renaming the file and switching UNIMARK on in the admin preferences and many other things. Please, what am i doing wrong, what elese can I try?
TIA, Bo
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Besides changing file permission. Bulkmarcimport.pl takes mrc file, I believe. So the command should be:
~/koha-2.2.9/scripts/misc/migration_tools# ./bulkmarcimport.pl -d -c UNIMARC --file test.mrc
You can use '-t' for testing purpose.
~/koha-2.2.9/scripts/misc/migration_tools# ./bulkmarcimport.pl -d -c UNIMARC --file test.mrc -t
Yan -----Original Message----- From: koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Jason Ronallo Sent: Thursday, May 17, 2007 9:25 AM To: bo@weavebrain.com.au Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] bulkmarcimport.pl problems Try exporting environmental variables before running bulkmarcimport. Something like: export PERL5LIB=/path/to/koha/intranet/modules For me on Debian Etch: export PERL5LIB=/usr/local/koha/intranet/modules --Jason On 5/17/07, Bo Schafers <bo@weavebrain.com.au> wrote:
Hi All,
I'm new to the list and Koha. Hope you can help. Seems like I'm so close, just stuck at the last hurdle?
I think I have the installation (2.9.9 on Debian Etch, MySQL 5.0 Apache2) up and running more or less the way its meant to, but after many hours of reading though the documentation and trying various commands, STILL cannot bulk-import records from an ISO2709 file. dumpmarc.pl runs fine, easily recognising the six entries. However when I try to run bulkmarcimport.pl on the file it fails no matter what I do...
EXAMPLE: ~/koha-2.2.9/scripts/misc/migration_tools# ./bulkmarcimport.pl -d -c UNIMARC --file test.mrk bash: ./bulkmarcimport.pl: Permission denied
I have tried renaming the file and switching UNIMARK on in the admin preferences and many other things. Please, what am i doing wrong, what
elese can I try?
TIA, Bo
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (5)
-
Bo Schafers -
Han, Yan -
Jason Ronallo -
Joshua M. Ferraro -
MJ Ray