[Koha] perl C4 module errors
Chris Cormack
crc at liblime.com
Fri Jun 8 10:17:57 NZST 2007
Hi Matthew
On 8/06/2007, at 10:12 AM, Matthew Metzger wrote:
> Hello,
>
> I just upgraded from 2.2.6 to 2.2.9
>
> I seem to be having problems with running some perl modules that
> come with koha, the C4 modules. Here's the error I get when I run
> this command:
>
> sudo perl /usr/local/koha/intranet/scripts/updater/updatedatabase
>
> Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/
> local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /
> usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/
> lib/site_perl .) at /usr/local/koha/intranet/scripts/updater/
> updatedatabase line 23.
> BEGIN failed--compilation aborted at /usr/local/koha/intranet/
> scripts/updater/updatedatabase line 23.
>
>
> How can I permanently add the C4 modules to the @INC variable? Is
> there some other solution that is better?
perl -I is the trick
perl -I /path/to/modules script
For the line above
sudo perl /usr/local/koha/intranet/scripts/updater/updatedatabase
make it
sudo perl -I /usr/local/koha/intranet/modules /usr/local/koha/
intranet/scripts/updater/updatedatabase
And you should be all go
Chris
--
Chris Cormack chris.cormack at liblime.com
VP Research and Development www.liblime.com
LibLime +64 21 542 131
More information about the Koha
mailing list