読者です 読者をやめる 読者になる 読者になる

岩手からこんにちは ☆彡 perl とかウェブ系なブログ

はてなダイアリーからひっこしましたよ http://d.hatena.ne.jp/rosiro

vmwareのcentosでcupsつかってネットワークプリンタ HP B110に印刷

わけあってcupsつかってネットワークプリンタで印刷することになった。
以下メモ

cupsをぐぐったり参考にしながらインストール。 /etc/cups/cups.confあたりをいじる

perlから使えそうなNet::CUPSをいれてみようとするもFAIL

[root@localhost]/# cpanm Net::CUPS
--> Working on Net::CUPS
Fetching http://www.cpan.org/authors/id/D/DH/DHAGEMAN/Net-CUPS-0.61.tar.gz ... OK
Configuring Net-CUPS-0.61 ... N/A
! Configure failed for Net-CUPS-0.61. See /root/.cpanm/build.log for details.
[root@localhost]/etc/pki/tls/certs# cpanm Net::CUPS -v
cpanm (App::cpanminus) 1.5018 on perl 5.010001 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1370494384.16578
You have make /usr/bin/make
You have LWP 6.04
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
使用許諾 GPLv3+: GNU GPL version 3 またはそれ以降 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[参考訳]
これはフリーソフトウェアです. 変更と再配布は自由です.
法律で認められる範囲で「無保証」です.

作者: John Gilmore, Jay Fenlason.
You have /usr/bin/unzip
Searching Net::CUPS on cpanmetadb ...
--> Working on Net::CUPS
Fetching http://www.cpan.org/authors/id/D/DH/DHAGEMAN/Net-CUPS-0.61.tar.gz ... OK
Unpacking Net-CUPS-0.61.tar.gz
Net-CUPS-0.61/
Net-CUPS-0.61/META.yml
Net-CUPS-0.61/typemap
Net-CUPS-0.61/t/
Net-CUPS-0.61/t/01_use.t
Net-CUPS-0.61/t/02_cups.t
Net-CUPS-0.61/const-c.inc
Net-CUPS-0.61/Makefile.PL
Net-CUPS-0.61/TODO
Net-CUPS-0.61/Changes
Net-CUPS-0.61/extra_t/
Net-CUPS-0.61/extra_t/03_destination.t
Net-CUPS-0.61/MANIFEST
Net-CUPS-0.61/README
Net-CUPS-0.61/lib/
Net-CUPS-0.61/lib/Net/
Net-CUPS-0.61/lib/Net/CUPS/
Net-CUPS-0.61/lib/Net/CUPS/Destination.pm
Net-CUPS-0.61/lib/Net/CUPS/PPD.pm
Net-CUPS-0.61/lib/Net/CUPS/IPP.pm
Net-CUPS-0.61/lib/Net/CUPS.pm
Net-CUPS-0.61/packer.c
Net-CUPS-0.61/fallback/
Net-CUPS-0.61/fallback/const-c.inc
Net-CUPS-0.61/fallback/const-xs.inc
Net-CUPS-0.61/examples/
Net-CUPS-0.61/examples/list_dests.pl
Net-CUPS-0.61/examples/print_file.pl
Net-CUPS-0.61/const-xs.inc
Net-CUPS-0.61/CUPS.xs
Net-CUPS-0.61/ppport.h
Entering Net-CUPS-0.61
Checking configure dependencies from META.yml
Configuring Net-CUPS-0.61 ... Running 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.
N/A
! Configure failed for Net-CUPS-0.61. See /root/.cpanm/build.log for details.

cups-develをインストールすると cups-configが手に入る
>>||
yum install cups-devel
|