How to installed cups package configuration T.T

kimsnagjoon moon10200 at nate.com
Thu Sep 22 17:00:30 PDT 2011


>
> I installed suse 11.4 and cups-devel-1.4.6-8.6.i586.rpm
>
> but I build sample in cups.org
> http://www.cups.org/documentation.php/api-overview.html
>
>
> #include <stdio.h>
> #include <cups/cups.h>
>
> int main(void)
> {
>   int i;
>   cups_dest_t *dests, *dest;
>   int num_dests = cupsGetDests(&dests);
>
>   for (i = num_dests, dest = dests; i > 0; i --, dest ++)
>   {
>     if (dest->instance)
>       printf("%s/%s\n", dest->name, dest->instance);
>     else
>       puts(dest->name);
>   }
>
>   return (0);
> }
>
> and
> gcc -o simple `cups-config --cflags` simple.c `cups-config --libs`
> ./simple
>
> but occur error
>
> gcc: cups-config --cflags: No such file or directory
> gcc: cups-config --libs: No such file or directory
>
> I want to know how to solve this problem. pleas sombody explain to me.

I Installed All Cups Package
Cups Version is 1.4.6
Linux Version is Ubuntu 11.4

apt-get install cups*

and then cups-config Test is success.

but
when I compile,
 < gcc -o simple `cups-config --cflags` simple.c `cups-config --libs` >
is Error

I don't know why it is.
How do I set cups library?

Pakage Log is below
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'bluez-cups' for regex 'cups*'
Note, selecting 'cups' for regex 'cups*'
Note, selecting 'cup' for regex 'cups*'
Note, selecting 'libcups2' for regex 'cups*'
Note, selecting 'libcupscgi1' for regex 'cups*'
Note, selecting 'libcupsdriver1' for regex 'cups*'
Note, selecting 'libcupsimage2' for regex 'cups*'
Note, selecting 'libcupsmime1' for regex 'cups*'
Note, selecting 'libcupsppdc1' for regex 'cups*'
Note, selecting 'cups-common' for regex 'cups*'
Note, selecting 'cups-client' for regex 'cups*'
Note, selecting 'cups-ppdc' for regex 'cups*'
Note, selecting 'cups-bsd' for regex 'cups*'
Note, selecting 'cups-pdf' for regex 'cups*'
Note, selecting 'cups-driver-gutenprint' for regex 'cups*'
Note, selecting 'ghostscript-cups' for regex 'cups*'
Note, selecting 'cupsddk-drivers' for regex 'cups*'
Note, selecting 'cups-dbg' for regex 'cups*'
Note, selecting 'cupsys-driver-gutenprint' for regex 'cups*'
Note, selecting 'cupsddk' for regex 'cups*'
Note, selecting 'hplip-cups' for regex 'cups*'
Note, selecting 'cupsomatic-ppd' for regex 'cups*'
Note, selecting 'libcupsys2' for regex 'cups*'
Note, selecting 'libcups2-dev' for regex 'cups*'
Note, selecting 'libcupsys2-dev' for regex 'cups*'
Note, selecting 'libcupscgi1-dev' for regex 'cups*'
Note, selecting 'libcupsdriver1-dev' for regex 'cups*'
Note, selecting 'libcupsimage2-dev' for regex 'cups*'
Note, selecting 'libcupsmime1-dev' for regex 'cups*'
Note, selecting 'libcupsppdc1-dev' for regex 'cups*'
Note, selecting 'python-cups' for regex 'cups*'
Note, selecting 'python2.6-cups' for regex 'cups*'
Note, selecting 'python2.7-cups' for regex 'cups*'
Note, selecting 'python-cupshelpers' for regex 'cups*'
Note, selecting 'cupsys-bsd' for regex 'cups*'
Note, selecting 'hal-cups-utils' for regex 'cups*'
Note, selecting 'cupsys-client' for regex 'cups*'
Note, selecting 'apcupsd' for regex 'cups*'
Note, selecting 'apcupsd-cgi' for regex 'cups*'
Note, selecting 'apcupsd-doc' for regex 'cups*'
Note, selecting 'libnet-cups-perl' for regex 'cups*'
Note, selecting 'cups-pk-helper' for regex 'cups*'
Note, selecting 'cupt' for regex 'cups*'
Note, selecting 'libcupt-perl' for regex 'cups*'
Note, selecting 'eggcups' for regex 'cups*'
Note, selecting 'libgnomecups1.0-1' for regex 'cups*'
Note, selecting 'gkrellmapcupsd' for regex 'cups*'
Note, selecting 'gnome-cups-manager' for regex 'cups*'
Note, selecting 'gnuspool-cupspy' for regex 'cups*'
Note, selecting 'libgnomecups1.0-dev' for regex 'cups*'
Note, selecting 'brother-cups-wrapper-ac' for regex 'cups*'
Note, selecting 'dcp9040cncups' for regex 'cups*'
Note, selecting 'dcp9040cncupswrapper' for regex 'cups*'
Note, selecting 'dcp9042cdncups' for regex 'cups*'
Note, selecting 'dcp9042cdncupswrapper' for regex 'cups*'
Note, selecting 'dcp9045cdncups' for regex 'cups*'
Note, selecting 'dcp9045cdncupswrapper' for regex 'cups*'
Note, selecting 'hl4040cdncups' for regex 'cups*'
Note, selecting 'hl4040cdncupswrapper' for regex 'cups*'
Note, selecting 'hl4040cncups' for regex 'cups*'
Note, selecting 'hl4040cncupswrapper' for regex 'cups*'
Note, selecting 'hl4050cdncups' for regex 'cups*'
Note, selecting 'hl4050cdncupswrapper' for regex 'cups*'
Note, selecting 'hl4070cdwcups' for regex 'cups*'
Note, selecting 'hl4070cdwcupswrapper' for regex 'cups*'
Note, selecting 'mfc9440cncups' for regex 'cups*'
Note, selecting 'mfc9440cncupswrapper' for regex 'cups*'
Note, selecting 'mfc9450cdncups' for regex 'cups*'
Note, selecting 'mfc9450cdncupswrapper' for regex 'cups*'
Note, selecting 'mfc9840cdwcups' for regex 'cups*'
Note, selecting 'mfc9840cdwcupswrapper' for regex 'cups*'
Note, selecting 'brother-cups-wrapper-bh7' for regex 'cups*'
Note, selecting 'brother-cups-wrapper-common' for regex 'cups*'
Note, selecting 'dcp130ccupswrapper' for regex 'cups*'
Note, selecting 'dcp330ccupswrapper' for regex 'cups*'
Note, selecting 'dcp540cncupswrapper' for regex 'cups*'
Note, selecting 'dcp750cncupswrapper' for regex 'cups*'
Note, selecting 'dcp750cwcupswrapper' for regex 'cups*'
Note, selecting 'fax1860ccupswrapper' for regex 'cups*'
Note, selecting 'fax1960ccupswrapper' for regex 'cups*'
Note, selecting 'fax2480ccupswrapper' for regex 'cups*'
Note, selecting 'fax2580ccupswrapper' for regex 'cups*'
Note, selecting 'mfc240ccupswrapper' for regex 'cups*'
Note, selecting 'mfc3360ccupswrapper' for regex 'cups*'
Note, selecting 'mfc440cncupswrapper' for regex 'cups*'
Note, selecting 'mfc460cncupswrapper' for regex 'cups*'
Note, selecting 'mfc5460cncupswrapper' for regex 'cups*'
Note, selecting 'mfc5860cncupswrapper' for regex 'cups*'
Note, selecting 'mfc630cdcupswrapper' for regex 'cups*'
Note, selecting 'mfc660cncupswrapper' for regex 'cups*'
Note, selecting 'mfc665cwcupswrapper' for regex 'cups*'
Note, selecting 'mfc845cwcupswrapper' for regex 'cups*'
Note, selecting 'mfc850cdncupswrapper' for regex 'cups*'
Note, selecting 'mfc860cdncupswrapper' for regex 'cups*'
Note, selecting 'brother-cups-wrapper-extra' for regex 'cups*'
Note, selecting 'cupswrapperdcp110c' for regex 'cups*'
Note, selecting 'cupswrapperdcp310cn' for regex 'cups*'
Note, selecting 'cupswrapperfax1815c' for regex 'cups*'
Note, selecting 'cupswrapperfax1820c' for regex 'cups*'
Note, selecting 'cupswrapperfax1835c' for regex 'cups*'
Note, selecting 'cupswrapperfax1840c' for regex 'cups*'
Note, selecting 'cupswrapperfax1920cn' for regex 'cups*'
Note, selecting 'cupswrapperfax1940cn' for regex 'cups*'
Note, selecting 'cupswrapperfax2440c' for regex 'cups*'
Note, selecting 'cupswrappermfc210c' for regex 'cups*'
Note, selecting 'cupswrappermfc3220c' for regex 'cups*'
Note, selecting 'cupswrappermfc3240c' for regex 'cups*'
Note, selecting 'cupswrappermfc3320cn' for regex 'cups*'
Note, selecting 'cupswrappermfc3340cn' for regex 'cups*'
Note, selecting 'cupswrappermfc3420c' for regex 'cups*'
Note, selecting 'cupswrappermfc3820cn' for regex 'cups*'
Note, selecting 'cupswrappermfc410cn' for regex 'cups*'
Note, selecting 'cupswrappermfc420cn' for regex 'cups*'
Note, selecting 'cupswrappermfc5440cn' for regex 'cups*'
Note, selecting 'cupswrappermfc5840cn' for regex 'cups*'
Note, selecting 'cupswrappermfc620cn' for regex 'cups*'
Note, selecting 'dcp135ccupswrapper' for regex 'cups*'
Note, selecting 'dcp150ccupswrapper' for regex 'cups*'
Note, selecting 'dcp153ccupswrapper' for regex 'cups*'
Note, selecting 'dcp350ccupswrapper' for regex 'cups*'
Note, selecting 'dcp353ccupswrapper' for regex 'cups*'
Note, selecting 'dcp560cncupswrapper' for regex 'cups*'
Note, selecting 'dcp770cwcupswrapper' for regex 'cups*'
Note, selecting 'mfc230ccupswrapper' for regex 'cups*'
Note, selecting 'mfc235ccupswrapper' for regex 'cups*'
Note, selecting 'mfc260ccupswrapper' for regex 'cups*'
Note, selecting 'mfc465cncupswrapper' for regex 'cups*'
Note, selecting 'mfc680cncupswrapper' for regex 'cups*'
Note, selecting 'mfc685cwcupswrapper' for regex 'cups*'
Note, selecting 'mfc885cwcupswrapper' for regex 'cups*'
Note, selecting 'brother-cups-wrapper-laser' for regex 'cups*'
Note, selecting 'cupswrapperdcp7010' for regex 'cups*'
Note, selecting 'cupswrapperdcp7020' for regex 'cups*'
Note, selecting 'cupswrapperdcp7025' for regex 'cups*'
Note, selecting 'cupswrapperdcp8060' for regex 'cups*'
Note, selecting 'cupswrapperdcp8065dn' for regex 'cups*'
Note, selecting 'cupswrapperfax2820' for regex 'cups*'
Note, selecting 'cupswrapperfax2920' for regex 'cups*'
Note, selecting 'cupswrapperhl2030' for regex 'cups*'
Note, selecting 'cupswrapperhl2040' for regex 'cups*'
Note, selecting 'cupswrapperhl2070n' for regex 'cups*'
Note, selecting 'cupswrapperhl5240' for regex 'cups*'
Note, selecting 'cupswrapperhl5250dn' for regex 'cups*'
Note, selecting 'cupswrapperhl5270dn' for regex 'cups*'
Note, selecting 'cupswrapperhl5280dw' for regex 'cups*'
Note, selecting 'cupswrappermfc7220' for regex 'cups*'
Note, selecting 'cupswrappermfc7225n' for regex 'cups*'
Note, selecting 'cupswrappermfc7420' for regex 'cups*'
Note, selecting 'cupswrappermfc7820n' for regex 'cups*'
Note, selecting 'cupswrappermfc8460n' for regex 'cups*'
Note, selecting 'cupswrappermfc8660dn' for regex 'cups*'
Note, selecting 'cupswrappermfc8860dn' for regex 'cups*'
Note, selecting 'cupswrappermfc8870dw' for regex 'cups*'
Note, selecting 'brother-cups-wrapper-laser1' for regex 'cups*'
Note, selecting 'cupswrapperdcp1000' for regex 'cups*'
Note, selecting 'cupswrapperdcp1400' for regex 'cups*'
Note, selecting 'cupswrapperdcp8020' for regex 'cups*'
Note, selecting 'cupswrapperdcp8025d' for regex 'cups*'
Note, selecting 'cupswrapperdcp8040' for regex 'cups*'
Note, selecting 'cupswrapperdcp8045d' for regex 'cups*'
Note, selecting 'cupswrapperfax2850' for regex 'cups*'
Note, selecting 'cupswrapperfax2900' for regex 'cups*'
Note, selecting 'cupswrapperfax3800' for regex 'cups*'
Note, selecting 'cupswrapperfax4100' for regex 'cups*'
Note, selecting 'cupswrapperfax4750e' for regex 'cups*'
Note, selecting 'cupswrapperfax5750e' for regex 'cups*'
Note, selecting 'cupswrapperhl1030' for regex 'cups*'
Note, selecting 'cupswrapperhl1230' for regex 'cups*'
Note, selecting 'cupswrapperhl1240' for regex 'cups*'
Note, selecting 'cupswrapperhl1250' for regex 'cups*'
Note, selecting 'cupswrapperhl1270n' for regex 'cups*'
Note, selecting 'cupswrapperhl1430' for regex 'cups*'
Note, selecting 'cupswrapperhl1440' for regex 'cups*'
Note, selecting 'cupswrapperhl1450' for regex 'cups*'
Note, selecting 'cupswrapperhl1470n' for regex 'cups*'
Note, selecting 'cupswrapperhl1650' for regex 'cups*'
Note, selecting 'cupswrapperhl1670n' for regex 'cups*'
Note, selecting 'cupswrapperhl1850' for regex 'cups*'
Note, selecting 'cupswrapperhl1870n' for regex 'cups*'
Note, selecting 'cupswrapperhl5030' for regex 'cups*'
Note, selecting 'cupswrapperhl5040' for regex 'cups*'
Note, selecting 'cupswrapperhl5050' for regex 'cups*'
Note, selecting 'cupswrapperhl5070n' for regex 'cups*'
Note, selecting 'cupswrapperhl5130' for regex 'cups*'
Note, selecting 'cupswrapperhl5140' for regex 'cups*'
Note, selecting 'cupswrapperhl5150d' for regex 'cups*'
Note, selecting 'cupswrapperhl5170dn' for regex 'cups*'
Note, selecting 'cupswrapperhl6050' for regex 'cups*'
Note, selecting 'cupswrapperhl6050d' for regex 'cups*'
Note, selecting 'cupswrappermfc4800' for regex 'cups*'
Note, selecting 'cupswrappermfc6800' for regex 'cups*'
Note, selecting 'cupswrappermfc8420' for regex 'cups*'
Note, selecting 'cupswrappermfc8440' for regex 'cups*'
Note, selecting 'cupswrappermfc8500' for regex 'cups*'
Note, selecting 'cupswrappermfc8820d' for regex 'cups*'
Note, selecting 'cupswrappermfc8840d' for regex 'cups*'
Note, selecting 'cupswrappermfc9030' for regex 'cups*'
Note, selecting 'cupswrappermfc9070' for regex 'cups*'
Note, selecting 'cupswrappermfc9160' for regex 'cups*'
Note, selecting 'cupswrappermfc9180' for regex 'cups*'
Note, selecting 'cupswrappermfc9660' for regex 'cups*'
Note, selecting 'cupswrappermfc9700' for regex 'cups*'
Note, selecting 'cupswrappermfc9760' for regex 'cups*'
Note, selecting 'cupswrappermfc9800' for regex 'cups*'
Note, selecting 'cupswrappermfc9860' for regex 'cups*'
Note, selecting 'cupswrappermfc9880' for regex 'cups*'
Note, selecting 'brother-cups-wrapper-mfc9420cn' for regex 'cups*'
Note, selecting 'mfc9420cncups' for regex 'cups*'
Note, selecting 'cups' instead of 'cupsddk-drivers'
Note, selecting 'libcups2' instead of 'libcupsys2'
Note, selecting 'libcups2-dev' instead of 'libcupsys2-dev'
Note, selecting 'python-cups' instead of 'python2.6-cups'
Note, selecting 'python-cups' instead of 'python2.7-cups'
bluez-cups is already the newest version.
cup is already the newest version.
cups-driver-gutenprint is already the newest version.
ghostscript-cups is already the newest version.
hplip-cups is already the newest version.
python-cups is already the newest version.
apcupsd is already the newest version.
apcupsd-cgi is already the newest version.
apcupsd-doc is already the newest version.
cups-pdf is already the newest version.
cups-pk-helper is already the newest version.
cupsys-driver-gutenprint is already the newest version.
cupt is already the newest version.
eggcups is already the newest version.
gkrellmapcupsd is already the newest version.
gnuspool-cupspy is already the newest version.
libcupt-perl is already the newest version.
libgnomecups1.0-1 is already the newest version.
libgnomecups1.0-dev is already the newest version.
libnet-cups-perl is already the newest version.
brother-cups-wrapper-ac is already the newest version.
brother-cups-wrapper-bh7 is already the newest version.
brother-cups-wrapper-common is already the newest version.
brother-cups-wrapper-extra is already the newest version.
brother-cups-wrapper-laser is already the newest version.
brother-cups-wrapper-laser1 is already the newest version.
brother-cups-wrapper-mfc9420cn is already the newest version.
cups is already the newest version.
cups-bsd is already the newest version.
cups-client is already the newest version.
cups-common is already the newest version.
cups-dbg is already the newest version.
cups-ppdc is already the newest version.
libcups2 is already the newest version.
libcups2-dev is already the newest version.
libcupscgi1 is already the newest version.
libcupscgi1-dev is already the newest version.
libcupsdriver1 is already the newest version.
libcupsdriver1-dev is already the newest version.
libcupsimage2 is already the newest version.
libcupsimage2-dev is already the newest version.
libcupsmime1 is already the newest version.
libcupsmime1-dev is already the newest version.
libcupsppdc1 is already the newest version.
libcupsppdc1-dev is already the newest version.
python-cupshelpers is already the newest version.
cupsddk is already the newest version.
hal-cups-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
root at joon-HP-EliteBook-8440w:~#






More information about the cups mailing list