Having problems with rebuils_nozebra.pl
Hi, I've tried to run the rebuild_nozebra.pl after importing some MARC records (because apparently I have to do this to get rid of the search error after importing records). The way I ran the script was in a terminal (Ubuntu 8.10) under a super admin user (I take this is how you are supposed to run the script?) and I recieved this error: "Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_nozebra.pl line 3. BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/rebuild_nozebra.pl line 3." Can someone shed some light on this? Thanks, Emits
The way I ran the script was in a terminal (Ubuntu 8.10) under a super admin user (I take this is how you are supposed to run the script?) and I recieved this error: "Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_nozebra.pl line 3. BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/rebuild_nozebra.pl line 3."
Can someone shed some light on this?
Thanks, Emits Hi, This is definitely a FAQ. If you search the mailing list you will find numerous answers to this query. You are getting this error because the koha perl files are not in the
perl path. You need to add where your koha lives to the perl path. run #/export PERLLIB=/usr/share/koha/lib/ Then run the rebuild_nozebra.pl script as your koha user. i.e. thus ( assuming your koha user is 'koha').. # sudo -u koha //usr/share/koha/bin/migration_tools/rebuild_nozebra.pl -- Regards, Koustubha Kale Anant Corporation Contact Details : Address : 103, Armaan Residency, R. W Sawant Road, Nr. Golden Dyes Naka, Thane (w), Maharashtra, India, Pin : 400601. TeleFax : +91-22-21720108, +91-22-21720109 Mobile : +919820715876 Website : http://www.anantcorp.com
participants (3)
-
Dr Emits -
Eric Bégin -
Koustubha Kale