Hello all, I'm having a bit of trouble generating barcodes. I think the problem is due to path errors. I'm using ubuntu, koha 2.2.9, and get this error: [Sun Aug 19 18:54:44 2007] [error] [client 10.0.0.1] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /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 /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://katalogo.martinmorris.org/cgi-bin/koha/barcodes/barcodes.pl I notice that PDF::API2 has a different installation path to that expected by koha, as my Utils.pm is in /usr/local/share/perl/5.8.8/PDF/API2/Basic/PDF. Playing around and temporarily creating a PDF directory in /usr/local/share/perl/5.8.8/PDF/API2 and copying the contents of /usr/local/share/perl/5.8.8/PDF/API2/Basic/PDF into there gives this different error: [Sun Aug 19 20:36:08 2007] [error] [client 10.0.0.1] Can't locate object method "barcode" via package "PDF::API2" at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 237., referer: http://katalogo.martinmorris.org/cgi-bin/koha/barcodes/barcodes.pl ...at which point I gave up! Any advice. Would be so useful to get this working. Martin
Martin Morris <martin@martinmorris.org> wrote:
I'm having a bit of trouble generating barcodes. I think the problem is due to path errors. [...] I notice that PDF::API2 has a different installation path to that expected by koha, as my Utils.pm is in /usr/local/share/perl/5.8.8/PDF/API2/Basic/PDF. [...]
Not quite path errors: you have a more up-to-date PDF::API2 than that version of Koha expected. Can you patch? Try http://serene.ttllp.co.uk/~mjr/barcodefix.patch I believe that's in CVS ready for 2.2.10 Real Soon Now. Hope that helps, -- 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/
participants (2)
-
Martin Morris -
MJ Ray