Subject: | Problem installing on Debian Lenny |
Date: | Wed, 12 Nov 2008 17:46:47 +1930 |
To: | bug-Net-CUPS [...] rt.cpan.org |
From: | "Luis Daniel Ibáñez González" <ldibanyez [...] gmail.com> |
Hi,
I was trying to install the module version 0.59 on a Debian Lenny system
(2.6.26-1-686) with perl 5.10.0, and i went through the following errors:
1)
Show quoted text
> perl Makefile.PL
Net::CUPS Configuration
Running cups-config ... failed.
Net::CUPS requires the Common Unix Printing System. Check
your system configuration and then attempt the configure
process again.
I realized that in my distro i need to install libcups2-dev in order to have
the cups-config command, so, the bug here is that you need to point out that
dependency (for Debian at least)
2) After solving 1:
Show quoted text> perl Makefile.PL
Net::CUPS Configuration
Running cups-config ... 1.3.8
Checking if your kit is complete...
Looks good
Unrecognized argument in LIBS ignored: '-g'
Unrecognized argument in LIBS ignored: '-O2'
Unrecognized argument in LIBS ignored: '-g'
Unrecognized argument in LIBS ignored: '-Wall'
Unrecognized argument in LIBS ignored: '-O2'
Unrecognized argument in LIBS ignored: '-I/usr/include/dbus-1.0'
Unrecognized argument in LIBS ignored: '-I/usr/lib/dbus-1.0/include'
Unrecognized argument in LIBS ignored: '-DDBUS_API_SUBJECT_TO_CHANGE'
Writing Makefile for Net::CUPS
Seems that, despite the unrecognized arguments, generated a makefile, but
then...
Show quoted text> make
cp lib/Net/CUPS.pm blib/lib/Net/CUPS.pm
AutoSplitting blib/lib/Net/CUPS.pm (blib/lib/auto/Net/CUPS)
cp lib/Net/CUPS/Destination.pm blib/lib/Net/CUPS/Destination.pm
AutoSplitting blib/lib/Net/CUPS/Destination.pm
(blib/lib/auto/Net/CUPS/Destination)
cp lib/Net/CUPS/IPP.pm blib/lib/Net/CUPS/IPP.pm
AutoSplitting blib/lib/Net/CUPS/IPP.pm (blib/lib/auto/Net/CUPS/IPP)
cp lib/Net/CUPS/PPD.pm blib/lib/Net/CUPS/PPD.pm
AutoSplitting blib/lib/Net/CUPS/PPD.pm (blib/lib/auto/Net/CUPS/PPD)
/usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap
/usr/share/perl/5.10/ExtUtils/typemap -typemap typemap CUPS.xs > CUPS.xsc
&& mv CUPS.xsc CUPS.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g
-DVERSION=\"0.59\" -DXS_VERSION=\"0.59\" -fPIC "-I/usr/lib/perl/5.10/CORE"
CUPS.c
CUPS.xs:10:24: error: cups/image.h: No existe el fichero o el directorio
In file included from CUPS.xs:19:
const-c.inc: In function 'constant_14':
const-c.inc:730: error: 'CUPS_IMAGE_RGB' undeclared (first use in this
function)
const-c.inc:730: error: (Each undeclared identifier is reported only once
const-c.inc:730: error: for each function it appears in.)
const-c.inc:889: error: 'CUPS_IMAGE_CMY' undeclared (first use in this
function)
const-c.inc: In function 'constant_15':
const-c.inc:1029: error: 'CUPS_IMAGE_CMYK' undeclared (first use in this
function)
const-c.inc: In function 'constant_16':
const-c.inc:1176: error: 'CUPS_IMAGE_BLACK' undeclared (first use in this
function)
const-c.inc:1233: error: 'CUPS_IMAGE_WHITE' undeclared (first use in this
function)
const-c.inc: In function 'constant_19':
const-c.inc:1880: error: 'CUPS_IMAGE_RGB_CMYK' undeclared (first use in this
function)
CUPS.xs: In function 'XS_Net__CUPS_NETCUPS_getDestination':
CUPS.xs:118: warning: assignment discards qualifiers from pointer target
type
make: *** [CUPS.o] Error 1
And couldn't get any further,
any ideas?
thanks in advance for your support,
--
Ing. Luis D. Ibáñez G.
Oficina de Desarrollo y Soporte de Sistemas
Gerencia de Ingeniería de Software
Centro Nacional de Tecnologías de la Información