[Koha] Barcode Generation problems

Martin Morris martin at martinmorris.org
Mon Aug 20 08:05:21 NZST 2007


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



More information about the Koha mailing list