[Perl]QRコードの作成

By tkumakiti - Last updated: 日曜日, 3月 7, 2010

QRコードを生成したくて、GD::Barcode::QRcodeを使ってみました。
まずはCPANでインストールから。。
cpan> install GD::Barcode
Running make install
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/COOP2of5.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/EAN8.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/Industrial2of5.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/EAN13.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/ITF.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/UPCE.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/Code39.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/IATA2of5.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/UPCA.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/NW7.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/Matrix2of5.pm
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv30H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv07L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv34L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv11H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv31L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc24.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv04H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc18.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv02H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv27L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv32M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv23L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv32L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc16.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv20M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv28Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv35Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv08L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv19L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv13H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv13Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv14M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv07M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv16H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv04M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv16Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv18H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv21M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv21L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv07H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv17H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv21H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv30Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc07.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv33M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv40Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv12Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv25H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv15L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv05H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv20L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv12L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv24Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv33H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv04L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv26L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv27M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv31M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv03L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv36Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv23H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv38H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc30.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc10.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv02Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv39H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv37H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv05M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc28.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv18Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv34M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv01Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv33Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv12H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv34Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv13M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv34H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc17.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv11M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv03Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv29H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv36M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv39M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv11L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv29Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv10Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv28L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv37L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv23M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv20Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv07Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv13L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv10M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv24M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv03M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv22H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc15.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv05L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv17L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv25Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv31H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv23Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv20H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv36L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv08M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv08Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv08H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv21Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv25M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv38Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv18M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv10L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv35H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv22M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv02L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv27Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv26M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv03H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv40H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv26Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv35M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv24H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv19H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv40L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv28H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv25L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv17Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv35L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv06L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv05Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv39Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv01L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc20.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv19Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv29M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv06M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv38M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv15M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv30M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv14Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv09Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv28M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv06H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv27H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv40M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv22L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv19M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv29L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv15H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv14H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv37M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv06Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv32Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv02M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv11Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv22Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv16M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv38L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv30L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc26.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv01H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv15Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc22.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/rsc13.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv32H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv31Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv33L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv18L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv26H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv16L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv09L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv24L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv04Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv09M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv10H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv17M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv14L.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv12M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv09H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv36H.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv37Q.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv01M.dat
Installing /usr/lib/perl5/site_perl/5.8.8/GD/Barcode/QRcode/qrv39L.dat
Installing /usr/share/man/man3/GD::Barcode::IATA2of5.3pm
Installing /usr/share/man/man3/GD::Barcode::Matrix2of5.3pm
Installing /usr/share/man/man3/GD::Barcode.3pm
Installing /usr/share/man/man3/GD::Barcode::EAN8.3pm
Installing /usr/share/man/man3/GD::Barcode::ITF.3pm
Installing /usr/share/man/man3/GD::Barcode::Industrial2of5.3pm
Installing /usr/share/man/man3/GD::Barcode::UPCA.3pm
Installing /usr/share/man/man3/GD::Barcode::EAN13.3pm
Installing /usr/share/man/man3/GD::Barcode::QRcode.3pm
Installing /usr/share/man/man3/GD::Barcode::COOP2of5.3pm
Installing /usr/share/man/man3/GD::Barcode::NW7.3pm
Installing /usr/share/man/man3/GD::Barcode::UPCE.3pm
Installing /usr/share/man/man3/GD::Barcode::Code39.3pm
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install — OK

で下記のスクリプトを実行してみたところ。。
#!/usr/bin/perl

use strict;
use warnings;
use utf8;
use GD::Barcode::QRcode;

my $str = "abcdefg\@hoge.jp";
my $qr = GD::Barcode::QRcode->new(
 $str, {
  Ecc => 'M',
  Version => 3,
  ModuleSize => 3
 }
)->plot();
my $fh;
open $fh, ">qr.png";
print $fh $qr->png;
close $fh;
exit;

GD::Imageが見つかんないってエラーがでました。
なんで、GDをインストールしてみましたが

cpan> install GD
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.

ってエラー。。
なんで、libgdをインストールすべく、yumを使ってインストールしてみました。

#yum install gd-devel
=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
gd-devel     i386  2.0.33-9.4.el5_4.2  updates 97 k
Updating:
freetype     i386  2.2.1-21.el5_3    base 310 k
gd        i386  2.0.33-9.4.el5_4.2  updates 154 k
libX11      i386  1.0.3-11.el5     base 796 k
Installing for dependencies:
fontconfig-devel  i386  2.4.1-7.el5     base 168 k
freetype-devel   i386  2.2.1-21.el5_3   base 146 k
libX11-devel    i386  1.0.3-11.el5    base 661 k
libXau-devel    i386  1.0.1-3.1      base 11 k
libXdmcp-devel   i386  1.0.1-2.1     base 7.5 k
libXpm-devel    i386  3.5.5-3      base 31 k
libjpeg-devel    i386  6b-37       base 105 k
libpng-devel    i386  2:1.2.10-7.1.el5_3.2 base 181 k
mesa-libGL-devel  i386  6.5.1-7.7.el5    base 466 k
xorg-x11-proto-devel i386  7.1-13.el5    base 247 k
zlib-devel      i386  1.2.3-3     base 101 k

Transaction Summary
=========================================================================
Install 12 Package(s)
Update 3 Package(s)
Remove 0 Package(s)

再度、GDをインストール

cpan> install GD
Running make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/GD/GD.bs
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/GD/GD.so
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/GD.pm
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/qd.pl
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/GD/Simple.pm
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/GD/Group.pm
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/GD/Polyline.pm
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/GD/Image.pm
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/GD/Polygon.pm
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/GD/autosplit.ix
Installing /usr/share/man/man1/bdf2gdfont.pl.1
Installing /usr/share/man/man3/GD::Image.3pm
Installing /usr/share/man/man3/GD::Polyline.3pm
Installing /usr/share/man/man3/GD::Polygon.3pm
Installing /usr/share/man/man3/GD::Simple.3pm
Installing /usr/share/man/man3/GD.3pm
Installing /usr/bin/bdf2gdfont.pl
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install — OK
無事完了。
スクリプトも動きました。

Filed in [Linux], [ソフト開発] • Tags: ,

[Postgresql]localeの設定について

By tkumakiti - Last updated: 金曜日, 2月 26, 2010

#/etc/rc.d/init.d/postgresql initdb –encoding=utf-8 –no-locale
# su – postgres
-bash-3.2$ psql -l
データベース一覧
名前 | 所有者 | エンコーディング | 照合順序 | Ctype(変換演算子) | アクセス権
———–+———-+——————+———-+——————-+———————–
postgres | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 |
template0 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres
: postgres=CTc/postgres
template1 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres
: postgres=CTc/postgres
ってなるんで??と思ったので、initdbでDBを作ってみた。
# su – postgres
-bash-3.2$ initidb -D /var/lib/pgsql/data –encoding=utf-8 –lc-collate=C
-bash-3.2$ psql -l
データベース一覧
名前 | 所有者 | エンコーディング | 照合順序 | Ctype(変換演算子) | アクセス権
———–+———-+——————+———-+——————-+———————–
postgres | postgres | UTF8 | C | ja_JP.UTF-8 |
template0 | postgres | UTF8 | C | ja_JP.UTF-8 | =c/postgres
: postgres=CTc/postgres
template1 | postgres | UTF8 | C | ja_JP.UTF-8 | =c/postgres
: postgres=CTc/postgres

# su – postgres
$ initdb -D /var/lib/pgsql/data –encoding=utf-8 –no-locale
$ psql -l
データベース一覧
名前 | 所有者 | エンコーディング | 照合順序 | Ctype(変換演算子) | アクセス権
———–+———-+——————+———-+——————-+———————–
postgres | postgres | UTF8 | C | C |
template0 | postgres | UTF8 | C | C | =c/postgres
: postgres=CTc/postgres
template1 | postgres | UTF8 | C | C | =c/postgres
: postgres=CTc/postgres

–no-localeにしたらCtypeもCになっちゃうんだ。。
とりあえずは、–lc-collate=Cの設定で。。
ロケール参考サイト:ロケール(国際化と地域化)

Filed in [Linux], [Tools] • Tags:

[Postgresql]CentOS5.3に8.4をインストール

By tkumakiti - Last updated: 金曜日, 2月 26, 2010

標準で入ってくるバージョンが8.1.xxとあまりに古いので、プロジェクトサイトからインストールした
RepoView: PostgreSQL PGDG Repository RPMs
8.4用のRepository Configurationをインストール
# rpm -ivh http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-centos-8.4-1.noarch.rpm
/etc/yum.repos.d/pgdg-84-centos.repoができた

ひとそろえインストール
# yum install postgresql postgresql-contrib postgresql-devel postgresql-docs postgresql-jdbc postgresql-libs postgresql-plperl postgresql-plpython postgresql-pltcl postgresql-server
============================================================================
Package Arch Version Repository Size
============================================================================
Installing:
postgresql-docs i386 8.4.2-1PGDG.rhel5 pgdg84 10 M
postgresql-jdbc noarch 8.4.701-1PGDG.rhel5 pgdg84 909 k
postgresql-plperl i386 8.4.2-1PGDG.rhel5 pgdg84 43 k
postgresql-plpython i386 8.4.2-1PGDG.rhel5 pgdg84 41 k
postgresql-pltcl i386 8.4.2-1PGDG.rhel5 pgdg84 30 k
Updating:
apr-util i386 1.2.7-7.el5_3.2 base 76 k
postgresql i386 8.4.2-1PGDG.rhel5 pgdg84 1.3 M
postgresql-contrib i386 8.4.2-1PGDG.rhel5 pgdg84 426 k
postgresql-devel i386 8.4.2-1PGDG.rhel5 pgdg84 1.5 M
postgresql-libs i386 8.4.2-1PGDG.rhel5 pgdg84 192 k
postgresql-server i386 8.4.2-1PGDG.rhel5 pgdg84 4.4 M
Installing for dependencies:
compat-postgresql-libs i686 4-1PGDG.rhel5 pgdg84 63 k

Transaction Summary
============================================================================
Install 6 Package(s)
Update 6 Package(s)
Remove 0 Package(s)

Installed: postgresql-docs.i386 0:8.4.2-1PGDG.rhel5 postgresql-jdbc.noarch 0:8.4.701-1PGDG.rhel5 postgresql-plperl.i386 0:8.4.2-1PGDG.rhel5 postgresql-plpython.i386 0:8.4.2-1PGDG.rhel5 postgresql-pltcl.i386 0:8.4.2-1PGDG.rhel5
Dependency Installed: compat-postgresql-libs.i686 0:4-1PGDG.rhel5
Updated: apr-util.i386 0:1.2.7-7.el5_3.2 postgresql.i386 0:8.4.2-1PGDG.rhel5 postgresql-contrib.i386 0:8.4.2-1PGDG.rhel5 postgresql-devel.i386 0:8.4.2-1PGDG.rhel5 postgresql-libs.i386 0:8.4.2-1PGDG.rhel5 postgresql-server.i386 0:8.4.2-1PGDG.rhel5
Complete!

# /etc/rc.d/init.d/postgresql start
古いバージョンのデータベースフォーマットが見付かりました。
PostgreSQL を使う前にデータのフォーマットをアップグレードする必要があります。
より詳細な情報は /usr/share/doc/postgresql-8.4.2/README.rpm-dist を見てください。
※起動すると上のようなメッセージ。。8.1からでもNGだったんだ。。

で、特に古いのには用が無いので、/var/lib/pgsqlを削除
# /etc/rc.d/init.d/postgresql initdb –encoding=utf-8 –no-locale
参考サイト:PostgreSQL/8.4 – OSSでLinuxサーバ構築

Filed in [Linux], [Tools] • Tags:

[Twitter]Net::Twitterを使ったOAuthの実装

By tkumakiti - Last updated: 木曜日, 2月 25, 2010

Net::Twitterを使ったOAuth実装を掲載します。よかったら参考にしてやってくださいな。
それにしても、perldoc Net::Twitter::Role::OAuthを見ていたら
my($self,$c) = @_;
$cってなんだ???ってハマってたら、Catalyst使ってるんですね。。。
わたしゃ使ってないんで、最初全然わからんかった。。(; ;

# cat auth.cgi

#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use Net::Twitter;
use CGI qw/:standard/;
use CGI::Cookie;

my $consumer_key = 'CONSUMER_KEY';
my $consumer_key_secret = 'CONSUMER_KEY_SECRET';
my $callback_url = 'http://hoge.com/callback.cgi';
my $q = CGI->new();

my $nt = Net::Twitter->new (
traits => ['API::REST', 'OAuth'],
consumer_key => $consumer_key,
consumer_secret => $consumer_key_secret,
);

my $url = $nt->get_authorization_url( callback => $callback_url );

#---callback.cgiにsecretを渡すためにファイルに書き出した(tokenはオマケ)
my $oauth_token = $nt->request_token;
my $oauth_secret = $nt->request_token_secret;
open OUT, ">/tmp/oauth.txt";
print OUT "$oauth_token&$oauth_secret\n";
close OUT;

print $q->redirect( $url );
exit;

# cat callback.cgi

#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use Net::Twitter;
use CGI qw/:standard/;
use CGI::Cookie;

my $consumer_key = 'CONSUMER_KEY';
my $consumer_key_secret = 'CONSUMER_KEY_SECRET';
my $q = CGI->new();

#--- パラメータでoauht_tokenも返してくれる
my $oauth_token = $q->param('oauth_token');
my $oauth_verifier = $q->param('oauth_verifier');

open IN, " my $buf = ;
close IN;
chomp $buf;
my @param = split( /&/, $buf );
my $oauth_secret = $param[1];

my $nt = Net::Twitter->new (
traits => ['API::REST', 'OAuth'],
consumer_key => $consumer_key,
consumer_secret => $consumer_key_secret,
);

$nt->request_token( $oauth_token );
$nt->request_token_secret( $oauth_secret );
my( $access_token, $access_token_secret, $user_id, $screen_name )
= $nt->request_access_token( verifier => $oauth_verifier );

exit;

screen_nameかuser_idをキーにでもして、access_*を管理できそうだな。。

Filed in [ソフト開発] • Tags: ,

CentOSにNet::Twitterをインストールした

By tkumakiti - Last updated: 水曜日, 2月 24, 2010

先日は、OSXにインストールしたんですが、今回はCentOSにインストールしました。
Looks good
Warning: prerequisite Data::Visitor::Callback 0 not found.
Warning: prerequisite DateTime 0.51 not found.
Warning: prerequisite DateTime::Format::Strptime 1.09 not found.
Warning: prerequisite Digest::SHA 0 not found.
Warning: prerequisite ExtUtils::MakeMaker 6.42 not found. We have 6.30.
Warning: prerequisite JSON 2.02 not found.
Warning: prerequisite JSON::Any 1.21 not found.
Warning: prerequisite Moose 0.9 not found.
Warning: prerequisite Moose::Exporter 0 not found.
Warning: prerequisite Moose::Role 0 not found.
Warning: prerequisite MooseX::MultiInitArg 0 not found.
Warning: prerequisite Net::OAuth 0.2 not found.
Warning: prerequisite Test::More 0.88 not found. We have 0.62.
Warning: prerequisite Try::Tiny 0 not found.
Warning: prerequisite URI 1.4 not found. We have 1.37.
Warning: prerequisite namespace::autoclean 0.09 not found.
Writing Makefile for Net::Twitter
—- Unsatisfied dependencies detected during [M/MM/MMIMS/Net-Twitter-3.11004.tar.gz] —–
DateTime
Data::Visitor::Callback
DateTime::Format::Strptime
Digest::SHA
Net::OAuth
Moose
JSON::Any
Moose::Role
Try::Tiny
namespace::autoclean
URI
ExtUtils::MakeMaker
Moose::Exporter
Test::More
JSON
MooseX::MultiInitArg
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Moose 0.89 not found.
Warning: prerequisite Task::Weaken 0 not found.
Warning: prerequisite Test::use::ok 0 not found.
Warning: prerequisite Tie::ToObject 0.01 not found.
Warning: prerequisite namespace::clean 0.08 not found.
‘SIGN’ is not a known MakeMaker parameter name.
Writing Makefile for Data::Visitor
—- Unsatisfied dependencies detected during [F/FL/FLORA/Data-Visitor-0.27.tar.gz] —–
namespace::clean
Tie::ToObject
Test::use::ok
Task::Weaken
Moose
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite B::Hooks::EndOfScope 0.07 not found.
Warning: prerequisite ExtUtils::MakeMaker 6.42 not found. We have 6.30.
Warning: prerequisite Sub::Identify 0.04 not found.
Warning: prerequisite Sub::Name 0.04 not found.
Warning: prerequisite Test::More 0.88 not found. We have 0.62.
Writing Makefile for namespace::clean
—- Unsatisfied dependencies detected during [F/FL/FLORA/namespace-clean-0.13.tar.gz] —–
Test::More
ExtUtils::MakeMaker
Sub::Name
Sub::Identify
B::Hooks::EndOfScope
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Sub::Exporter 0 not found.
Warning: prerequisite Variable::Magic 0.34 not found.
Writing Makefile for B::Hooks::EndOfScope
—- Unsatisfied dependencies detected during [F/FL/FLORA/B-Hooks-EndOfScope-0.08.tar.gz] —–
Sub::Exporter
Variable::Magic
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Data::OptList 0.1 not found.
Warning: prerequisite Params::Util 0.14 not found.
Warning: prerequisite Sub::Install 0.92 not found.
Writing Makefile for Sub::Exporter
—- Unsatisfied dependencies detected during [R/RJ/RJBS/Sub-Exporter-0.982.tar.gz] —–
Params::Util
Sub::Install
Data::OptList
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Test::use::ok 0 not found.
Writing Makefile for Tie::ToObject
—- Unsatisfied dependencies detected during [N/NU/NUFFIN/Tie-ToObject-0.03.tar.gz] —–
Test::use::ok
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::MOP 0.98 not found.
Warning: prerequisite List::MoreUtils 0.12 not found.
Warning: prerequisite Try::Tiny 0.02 not found.
Writing Makefile for Moose
—- Unsatisfied dependencies detected during [D/DR/DROLSKY/Moose-0.98.tar.gz] —–
Try::Tiny
Class::MOP
List::MoreUtils
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Devel::GlobalDestruction 0 not found.
Warning: prerequisite MRO::Compat 0.05 not found.
Writing Makefile for Class::MOP
—- Unsatisfied dependencies detected during [D/DR/DROLSKY/Class-MOP-0.98.tar.gz] —–
Devel::GlobalDestruction
MRO::Compat
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Scope::Guard 0 not found.
Writing Makefile for Devel::GlobalDestruction
—- Unsatisfied dependencies detected during [N/NU/NUFFIN/Devel-GlobalDestruction-0.02.tar.gz] —–
Scope::Guard
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::C3 0.20 not found.
Writing Makefile for MRO::Compat
—- Unsatisfied dependencies detected during [F/FL/FLORA/MRO-Compat-0.11.tar.gz] —–
Class::C3
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Algorithm::C3 0.06 not found.
Writing Makefile for Class::C3
—- Unsatisfied dependencies detected during [F/FL/FLORA/Class-C3-0.22.tar.gz] —–
Algorithm::C3
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite DateTime 0.4304 not found.
Warning: prerequisite DateTime::Locale 0.43 not found.
Warning: prerequisite DateTime::TimeZone 0.79 not found.
Warning: prerequisite Params::Validate 0.64 not found.
Writing Makefile for DateTime::Format::Strptime
—- Unsatisfied dependencies detected during [R/RI/RICKM/DateTime-Format-Strptime-1.1000.tgz] —–
DateTime::TimeZone
DateTime::Locale
DateTime
Params::Validate
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::Singleton 1.03 not found.
Warning: prerequisite Module::Build 0 not found.
Warning: prerequisite Params::Validate 0.72 not found.
Writing Makefile for DateTime::TimeZone
—- Unsatisfied dependencies detected during [D/DR/DROLSKY/DateTime-TimeZone-1.10.tar.gz] —–
Class::Singleton
Params::Validate
Module::Build
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

# running Build.PL
Checking prerequisites…
requires:
! ExtUtils::CBuilder is not installed
! ExtUtils::ParseXS is not installed
build_requires:
! Test::Harness (2.56) is installed, but we need version >= 3.16

Checking optional features…
dist_authoring……….disabled
requires:
! Archive::Tar is not installed
recommends:
* Module::Signature is not installed
* Pod::Readme is not installed
inc_bundling_support….disabled
requires:
! ExtUtils::Install (1.52) is installed, but we need version >= 1.54
! ExtUtils::Installed (1.43) is installed, but we need version >= 1.999
license_creation……..disabled
requires:
! Software::License is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation

Creating new ‘MYMETA.yml’ with configuration results
Creating new ‘Build’ script for ‘Module-Build’ version ‘0.3603′
—- Unsatisfied dependencies detected during [D/DA/DAGOLDEN/Module-Build-0.3603.tar.gz] —–
ExtUtils::CBuilder
Test::Harness
ExtUtils::ParseXS
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

# running Build.PL
Checking prerequisites…
build_requires:
! Class::Accessor is not installed
! Class::Data::Inheritable is not installed
! Digest::SHA1 is not installed
! Encode (2.12) is installed, but we need version >= 2.35
! UNIVERSAL::require is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation

Run ‘Build installdeps’ to install missing prerequisites.

Creating new ‘MYMETA.yml’ with configuration results
Creating new ‘Build’ script for ‘Net-OAuth’ version ‘0.20′
—- Unsatisfied dependencies detected during [K/KG/KGRENNAN/Net-OAuth-0.20.tar.gz] —–
Digest::SHA1
Class::Accessor
Encode
Class::Data::Inheritable
UNIVERSAL::require
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Cannot determine perl version info from lib/JSON/Any.pm
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies…

*** Since we’re running under CPAN, I’ll just let it take care
of the dependency’s installation later.
[Core Features]
- Test::More …loaded. (0.94 >= 0.42)
- Carp …loaded. (1.04)
- JSON …missing. (would need 2.02)
[JSON::XS]
- JSON::XS …missing. (would need 2.232)
==> Auto-install the 1 optional module(s) from CPAN? [y]
[JSON::DWIW]
- JSON::DWIW …missing.
==> Auto-install the 1 optional module(s) from CPAN? [n]
[JSON::Syck]
- JSON::Syck …missing.
==> Auto-install the 1 optional module(s) from CPAN? [n]
*** Module::AutoInstall configuration finished.
Checking if your kit is complete…
Looks good
Warning: prerequisite JSON 2.02 not found.
Warning: prerequisite JSON::XS 2.232 not found.
Writing Makefile for JSON::Any
—- Unsatisfied dependencies detected during [P/PE/PERIGRIN/JSON-Any-1.22.tar.gz] —–
JSON
JSON::XS
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite common::sense 0 not found.
Writing Makefile for JSON::XS
—- Unsatisfied dependencies detected during [M/ML/MLEHMANN/JSON-XS-2.27.tar.gz] —–
common::sense
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

DateTimeが無いってエラーが出た。
cpan> install DateTime
cpan> install Net::Twitter
Running install for module Net::Twitter
Running make for M/MM/MMIMS/Net-Twitter-3.11004.tar.gz
Is already unwrapped into directory /root/.cpan/build/Net-Twitter-3.11004
Has already been processed within this session
Running make test
—- Unsatisfied dependencies detected during [M/MM/MMIMS/Net-Twitter-3.11004.tar.gz] —–
DateTime::Format::Strptime
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Running make install
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Identica.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter.pod
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/OAuth.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/API.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Search.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Core.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Error.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/RateLimit.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/OAuth.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/WrapError.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/Legacy.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/InflateObjects.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/API/Search.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/API/Lists.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/API/TwitterVision.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/Twitter/Role/API/REST.pm
Installing /usr/share/man/man3/Net::Twitter::Role::OAuth.3pm
Installing /usr/share/man/man3/Net::Twitter::Search.3pm
Installing /usr/share/man/man3/Net::Twitter::Error.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::API::Lists.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::RateLimit.3pm
Installing /usr/share/man/man3/Net::Twitter::OAuth.3pm
Installing /usr/share/man/man3/Net::Twitter::API.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::API::Search.3pm
Installing /usr/share/man/man3/Net::Twitter.3pm
Installing /usr/share/man/man3/Net::Twitter::Core.3pm
Installing /usr/share/man/man3/Net::Identica.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::API::REST.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::InflateObjects.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::API::TwitterVision.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::WrapError.3pm
Installing /usr/share/man/man3/Net::Twitter::Role::Legacy.3pm
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install — OK

無事終了

Filed in [Linux], [ソフト開発] • Tags: ,

言ってることがわかりませんて

By tkumakiti - Last updated: 日曜日, 2月 21, 2010

先日、大阪駅を歩いているとき、どっかの人が一生懸命アジをやってた。
大きな音だったんで、聞くとも無しに聞いてたんだけど・・・ナニ言ってるかほとんどわからん。。

例の北朝鮮のアナウンサーさんみたいに、抑揚をつけてカッコよく話をしているようなんだけど、基本的に、しゃべりが早すぎんですよね。。まわりの建物に反射して、ワンワンとなってしまい、まえの声に今の声がかき消されちゃう。もう少し状況を考えながらしゃべればいいのに。。

それでも聞こえるところはあるんだから聞いてたんだけど、なんかひっかかる。。。
なんかな~って聞いてたら、語尾が「~かと」になってる!
「~かと」って、「わたしは~かと思います」ってことですよね。
これって、アジテーションじゃなくって、たんなるツブヤキなんじゃ??
説得力ないよね~(^ ^;
プレゼンで「~かと思います」なんてやったら、「顔洗って出直してこい!」ってなっちゃう。

Filed in [つぶやき]

Net::TwitterをOSXにインストール・・した

By tkumakiti - Last updated: 火曜日, 2月 16, 2010

CPANでNet::Twitterをインストールした記録です。。時間かかった~。。

[Core Features]
- Test::More …too old. (0.8 < 0.88)
- Carp ...loaded. (1.10)
- Digest::SHA ...missing.
- List::Util ...loaded. (1.19)
- Net::Netrc ...loaded. (2.12)
- Scalar::Util ...loaded. (1.19)
- Data::Visitor::Callback ...missing.
- DateTime ...missing. (would need 0.51)
- DateTime::Format::Strptime ...missing. (would need 1.09)
- Encode ...loaded. (2.26)
- HTML::Entities ...missing.
- HTTP::Request::Common ...loaded. (5.817)
- JSON::Any ...missing. (would need 1.21)
- LWP::UserAgent ...loaded. (5.819 >= 2.032)
- Moose …missing. (would need 0.9)
- Moose::Exporter …missing.
- Moose::Role …missing.
- MooseX::MultiInitArg …missing.
- namespace::autoclean …missing. (would need 0.09)
- Net::OAuth …missing. (would need 0.2)
- URI …too old. (1.37 < 1.4)
- URI::Escape ...loaded. (3.29)
- Try::Tiny ...missing.
- JSON ...missing. (would need 2.02)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Warning: prerequisite Data::Visitor::Callback 0 not found.
Warning: prerequisite DateTime 0.51 not found.
Warning: prerequisite DateTime::Format::Strptime 1.09 not found.
Warning: prerequisite Digest::SHA 0 not found.
Warning: prerequisite HTML::Entities 0 not found.
Warning: prerequisite JSON 2.02 not found.
Warning: prerequisite JSON::Any 1.21 not found.
Warning: prerequisite Moose 0.9 not found.
Warning: prerequisite Moose::Exporter 0 not found.
Warning: prerequisite Moose::Role 0 not found.
Warning: prerequisite MooseX::MultiInitArg 0 not found.
Warning: prerequisite Net::OAuth 0.2 not found.
Warning: prerequisite Test::More 0.88 not found. We have 0.8.
Warning: prerequisite Try::Tiny 0 not found.
Warning: prerequisite URI 1.4 not found. We have 1.37.
Warning: prerequisite namespace::autoclean 0.09 not found.
Writing Makefile for Net::Twitter
Could not read '/Users/toshisan/.cpan/build/Net-Twitter-3.11004-zwNVOw/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- MMIMS/Net-Twitter-3.11004.tar.gz ----
DateTime [requires]
Data::Visitor::Callback [requires]
DateTime::Format::Strptime [requires]
Digest::SHA [requires]
HTML::Entities [requires]
Net::OAuth [requires]
Moose [requires]
JSON::Any [requires]
Moose::Role [requires]
Try::Tiny [requires]
namespace::autoclean [requires]
URI [requires]
Moose::Exporter [requires]
Test::More [requires]
JSON [requires]
MooseX::MultiInitArg [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Moose 0.89 not found.
Warning: prerequisite Task::Weaken 0 not found.
Warning: prerequisite Test::use::ok 0 not found.
Warning: prerequisite Tie::ToObject 0.01 not found.
Warning: prerequisite namespace::clean 0.08 not found.
Writing Makefile for Data::Visitor
Could not read '/Users/toshisan/.cpan/build/Data-Visitor-0.27-ILZ1mF/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- FLORA/Data-Visitor-0.27.tar.gz ----
Tie::ToObject [requires]
Task::Weaken [requires]
Moose [requires]
namespace::clean [requires]
Test::use::ok [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

---- Unsatisfied dependencies detected during ----
---- NUFFIN/Tie-ToObject-0.03.tar.gz ----
Test::use::ok [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::MOP 0.98 not found.
Warning: prerequisite Data::OptList 0 not found.
Warning: prerequisite List::MoreUtils 0.12 not found.
Warning: prerequisite Sub::Exporter 0.980 not found.
Warning: prerequisite Sub::Name 0 not found.
Warning: prerequisite Test::More 0.88 not found. We have 0.8.
Warning: prerequisite Try::Tiny 0.02 not found.
Writing Makefile for Moose
Could not read '/Users/toshisan/.cpan/build/Moose-0.98-NXVxC7/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- DROLSKY/Moose-0.98.tar.gz ----
Class::MOP [requires]
Sub::Exporter [requires]
List::MoreUtils [requires]
Try::Tiny [requires]
Sub::Name [requires]
Data::OptList [requires]
Test::More [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Devel::GlobalDestruction 0 not found.
Warning: prerequisite MRO::Compat 0.05 not found.
Warning: prerequisite Sub::Name 0.04 not found.
Warning: prerequisite Test::More 0.88 not found. We have 0.8.
Warning: prerequisite Try::Tiny 0.02 not found.
Writing Makefile for Class::MOP
Could not read '/Users/toshisan/.cpan/build/Class-MOP-0.98-n4RqIL/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- DROLSKY/Class-MOP-0.98.tar.gz ----
MRO::Compat [requires]
Try::Tiny [requires]
Sub::Name [requires]
Test::More [requires]
Devel::GlobalDestruction [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::C3 0.20 not found.
Writing Makefile for MRO::Compat
Could not read '/Users/toshisan/.cpan/build/MRO-Compat-0.11-8QyvpH/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- FLORA/MRO-Compat-0.11.tar.gz ----
Class::C3 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Algorithm::C3 0.06 not found.
Writing Makefile for Class::C3
Could not read '/Users/toshisan/.cpan/build/Class-C3-0.22-zX64yH/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- FLORA/Class-C3-0.22.tar.gz ----
Algorithm::C3 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Scope::Guard 0 not found.
Warning: prerequisite Sub::Exporter 0 not found.
Writing Makefile for Devel::GlobalDestruction
Could not read '/Users/toshisan/.cpan/build/Devel-GlobalDestruction-0.02-VAzS61/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- NUFFIN/Devel-GlobalDestruction-0.02.tar.gz ----
Scope::Guard [requires]
Sub::Exporter [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Data::OptList 0.1 not found.
Warning: prerequisite Params::Util 0.14 not found.
Warning: prerequisite Sub::Install 0.92 not found.
Writing Makefile for Sub::Exporter
Could not read '/Users/toshisan/.cpan/build/Sub-Exporter-0.982-6hNMqk/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- RJBS/Sub-Exporter-0.982.tar.gz ----
Params::Util [requires]
Data::OptList [requires]
Sub::Install [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Sub::Install 0.921 not found.
Writing Makefile for Data::OptList
Could not read '/Users/toshisan/.cpan/build/Data-OptList-0.106-VrNJfB/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- RJBS/Data-OptList-0.106.tar.gz ----
Sub::Install [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite B::Hooks::EndOfScope 0.07 not found.
Warning: prerequisite Sub::Identify 0.04 not found.
Writing Makefile for namespace::clean
Could not read '/Users/toshisan/.cpan/build/namespace-clean-0.13-FdwCF2/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- FLORA/namespace-clean-0.13.tar.gz ----
Sub::Identify [requires]
B::Hooks::EndOfScope [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Variable::Magic 0.34 not found.
Writing Makefile for B::Hooks::EndOfScope
Could not read '/Users/toshisan/.cpan/build/B-Hooks-EndOfScope-0.08-m0Gm_R/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- FLORA/B-Hooks-EndOfScope-0.08.tar.gz ----
Variable::Magic [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite DateTime 0.4304 not found.
Warning: prerequisite DateTime::Locale 0.43 not found.
Warning: prerequisite DateTime::TimeZone 0.79 not found.
Warning: prerequisite Params::Validate 0.64 not found.
Writing Makefile for DateTime::Format::Strptime
Could not read '/Users/toshisan/.cpan/build/DateTime-Format-Strptime-1.1000-cp1i28/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- RICKM/DateTime-Format-Strptime-1.1000.tgz ----
DateTime [requires]
DateTime::Locale [requires]
DateTime::TimeZone [requires]
Params::Validate [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Module::Build 0 not found.
Warning: prerequisite Params::Validate 0.91 not found.
Writing Makefile for DateTime::Locale
Could not read '/Users/toshisan/.cpan/build/DateTime-Locale-0.44-G759c0/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- DROLSKY/DateTime-Locale-0.44.tar.gz ----
Module::Build [requires]
Params::Validate [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

# running Build.PL
Checking prerequisites...
requires:
! ExtUtils::CBuilder is not installed
! ExtUtils::ParseXS (2.19) is installed, but we need version >= 2.21
build_requires:
! Test::Harness (2.64) is installed, but we need version >= 3.16

Checking optional features…
YAML_support…………disabled
requires:
! YAML::Tiny is not installed
dist_authoring……….disabled
requires:
! Archive::Tar is not installed
recommends:
* Module::Signature is not installed
* Pod::Readme is not installed
inc_bundling_support….disabled
requires:
! ExtUtils::Install (1.50_01) is installed, but we need version >= 1.54
! ExtUtils::Installed (1.43) is installed, but we need version >= 1.999
license_creation……..disabled
requires:
! Software::License is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation

Creating new ‘MYMETA.yml’ with configuration results
Creating new ‘Build’ script for ‘Module-Build’ version ‘0.3603′
Could not read ‘/Users/toshisan/.cpan/build/Module-Build-0.3603-cAcMRO/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- DAGOLDEN/Module-Build-0.3603.tar.gz —-
ExtUtils::CBuilder [requires]
Test::Harness [requires]
ExtUtils::ParseXS [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Creating new ‘MYMETA.yml’ with configuration results
Creating new ‘Build’ script for ‘Params-Validate’ version ‘0.94′
Could not read ‘/Users/toshisan/.cpan/build/Params-Validate-0.94-CN4wXW/META.yml’. Falling back to other methods to determine prerequisites
CPAN: Module::Build loaded ok (v0.3603)
—- Unsatisfied dependencies detected during —-
—- DROLSKY/Params-Validate-0.94.tar.gz —-
Attribute::Handlers [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Checking if your kit is complete…
Looks good
Warning: prerequisite Class::Singleton 1.03 not found.
Writing Makefile for DateTime::TimeZone
Could not read ‘/Users/toshisan/.cpan/build/DateTime-TimeZone-1.10-81XGOu/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- DROLSKY/DateTime-TimeZone-1.10.tar.gz —-
Class::Singleton [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Creating new ‘MYMETA.yml’ with configuration results
Creating new ‘Build’ script for ‘Net-OAuth’ version ‘0.20′
Could not read ‘/Users/toshisan/.cpan/build/Net-OAuth-0.20-vDb8On/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- KGRENNAN/Net-OAuth-0.20.tar.gz —-
Encode [requires]
Digest::SHA1 [requires]
UNIVERSAL::require [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Cannot determine perl version info from lib/JSON/Any.pm
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies…
*** Since we’re running under CPAN, I’ll just let it take care
of the dependency’s installation later.
[Core Features]
- Test::More …loaded. (0.94 >= 0.42)
- Carp …loaded. (1.10)
- JSON …missing. (would need 2.02)
[JSON::XS]
- JSON::XS …missing. (would need 2.232)
==> Auto-install the 1 optional module(s) from CPAN? [y]
[JSON::DWIW]
- JSON::DWIW …missing.
==> Auto-install the 1 optional module(s) from CPAN? [n]
[JSON::Syck]
- JSON::Syck …missing.
==> Auto-install the 1 optional module(s) from CPAN? [n]
*** Module::AutoInstall configuration finished.
Checking if your kit is complete…
Looks good
Warning: prerequisite JSON 2.02 not found.
Warning: prerequisite JSON::XS 2.232 not found.
Writing Makefile for JSON::Any
Could not read ‘/Users/toshisan/.cpan/build/JSON-Any-1.22-QpuwAF/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- PERIGRIN/JSON-Any-1.22.tar.gz —-
JSON::XS [requires]
JSON [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite common::sense 0 not found.
Writing Makefile for JSON::XS
Could not read ‘/Users/toshisan/.cpan/build/JSON-XS-2.27-xuIXow/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- MLEHMANN/JSON-XS-2.27.tar.gz —-
common::sense [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::MOP 0.80 not found.
Writing Makefile for namespace::autoclean
Could not read ‘/Users/toshisan/.cpan/build/namespace-autoclean-0.09-rpZ3v7/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- FLORA/namespace-autoclean-0.09.tar.gz —-
Class::MOP [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Moose 0 not found.
Writing Makefile for MooseX::MultiInitArg
Could not read ‘/Users/toshisan/.cpan/build/MooseX-MultiInitArg-0.01-DIOMMe/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- FRODWITH/MooseX-MultiInitArg-0.01.tar.gz —-
Moose [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Result: FAIL
Failed 19/22 test programs. 12/12 subtests failed.
make: *** [test_dynamic] Error 255
MMIMS/Net-Twitter-3.11004.tar.gz
make test — NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MMIMS/Net-Twitter-3.11004.tar.gz
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state
Running make install
make test had returned bad status, won’t install without force
Failed during this command:
DROLSKY/DateTime-0.53.tar.gz : writemakefile NO ‘/opt/local/bin/perl Build.PL ‘ returned status 512
FLORA/Algorithm-C3-0.08.tar.gz : writemakefile NO ‘/opt/local/bin/perl Build.PL ‘ returned status 512
FLORA/Class-C3-0.22.tar.gz : make_test NO
FLORA/MRO-Compat-0.11.tar.gz : make_test NO
DROLSKY/Class-MOP-0.98.tar.gz : make_test NO
DROLSKY/Moose-0.98.tar.gz : make_test NO
FLORA/Data-Visitor-0.27.tar.gz : make_test NO
RICKM/DateTime-Format-Strptime-1.1000.tgz : make_test NO
FLORA/namespace-autoclean-0.09.tar.gz : make_test NO
FRODWITH/MooseX-MultiInitArg-0.01.tar.gz : make_test NO
MMIMS/Net-Twitter-3.11004.tar.gz : make_test NO

cpan[2]>
—– 1回目エラーで終了
どうやらYAML::Tinyがはいっていないためらしい。。。
普段はYAML::XS使ってるんで、インストールしていない。。

てわけで、YAML::Tinyをインストールして再開。

cpan>install YAML::Tiny
cpan>install Net::Twitter

Looks good
Warning: prerequisite Data::Visitor::Callback 0 not found.
Warning: prerequisite DateTime 0.51 not found.
Warning: prerequisite DateTime::Format::Strptime 1.09 not found.
Warning: prerequisite Moose 0.9 not found.
Warning: prerequisite Moose::Exporter 0 not found.
Warning: prerequisite Moose::Role 0 not found.
Warning: prerequisite MooseX::MultiInitArg 0 not found.
Warning: prerequisite namespace::autoclean 0.09 not found.
Writing Makefile for Net::Twitter
Could not read ‘/Users/toshisan/.cpan/build/Net-Twitter-3.11004-ZFMs2L/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- MMIMS/Net-Twitter-3.11004.tar.gz —-
DateTime [requires]
Data::Visitor::Callback [requires]
DateTime::Format::Strptime [requires]
Moose [requires]
Moose::Role [requires]
namespace::autoclean [requires]
Moose::Exporter [requires]
MooseX::MultiInitArg [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Moose 0.89 not found.
Writing Makefile for Data::Visitor
Could not read ‘/Users/toshisan/.cpan/build/Data-Visitor-0.27-cV_hLB/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- FLORA/Data-Visitor-0.27.tar.gz —-
Moose [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::MOP 0.98 not found.
Writing Makefile for Moose
Could not read ‘/Users/toshisan/.cpan/build/Moose-0.98-S3qPa2/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- DROLSKY/Moose-0.98.tar.gz —-
Class::MOP [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite MRO::Compat 0.05 not found.
Writing Makefile for Class::MOP
Could not read ‘/Users/toshisan/.cpan/build/Class-MOP-0.98-Mw6qC2/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- DROLSKY/Class-MOP-0.98.tar.gz —-
MRO::Compat [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Class::C3 0.20 not found.
Writing Makefile for MRO::Compat
Could not read ‘/Users/toshisan/.cpan/build/MRO-Compat-0.11-0WbVx6/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- FLORA/MRO-Compat-0.11.tar.gz —-
Class::C3 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Looks good
Warning: prerequisite Algorithm::C3 0.06 not found.
Writing Makefile for Class::C3
Could not read ‘/Users/toshisan/.cpan/build/Class-C3-0.22-LAH5nZ/META.yml’. Falling back to other methods to determine prerequisites
—- Unsatisfied dependencies detected during —-
—- FLORA/Class-C3-0.22.tar.gz —-
Algorithm::C3 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

Running make install
Prepending /Users/toshisan/.cpan/build/Net-Twitter-3.11004-ZFMs2L/blib/arch /Users/toshisan/.cpan/build/Net-Twitter-3.11004-ZFMs2L/blib/lib to PERL5LIB for ‘install’
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Identica.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter.pod
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/API.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Core.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Error.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/OAuth.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Search.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/InflateObjects.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/Legacy.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/OAuth.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/RateLimit.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/WrapError.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/API/Lists.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/API/REST.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/API/Search.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/Net/Twitter/Role/API/TwitterVision.pm
Installing /opt/local/share/man/man3/Net::Identica.3pm
Installing /opt/local/share/man/man3/Net::Twitter.3pm
Installing /opt/local/share/man/man3/Net::Twitter::API.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Core.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Error.3pm
Installing /opt/local/share/man/man3/Net::Twitter::OAuth.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::API::Lists.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::API::REST.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::API::Search.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::API::TwitterVision.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::InflateObjects.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::Legacy.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::OAuth.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::RateLimit.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Role::WrapError.3pm
Installing /opt/local/share/man/man3/Net::Twitter::Search.3pm
Writing /opt/local/lib/perl5/site_perl/5.8.9/darwin-thread-multi-2level/auto/Net/Twitter/.packlist
Appending installation info to /opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/perllocal.pod
MMIMS/Net-Twitter-3.11004.tar.gz
make install — OK
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state

無事終了!!

Filed in [Mac], [ソフト開発] • Tags: ,

PDFのHTML埋込みでハマる

By tkumakiti - Last updated: 日曜日, 2月 14, 2010

PDFを単独で表示するのでなく、HTMLの中で表示させようとしているんですが、これがまた・・結構ハマってますです。。

基本的に<embed>タグでイケルとなってるんですが、
IE:
<embed>⇒表示された
Safari:
<embed>⇒表示されるんだが、スクロールバーが出てきてしまう。印刷プレビューにもスクロールバーが表示される。
<img>⇒思うように表示された
Firefox:
<embed>⇒プラグインを要求されたが、適切なプラグインが見つからない人のことで表示されず。
<img>⇒表示されず

な感じ。。
どうしても必要ってわけでもないので、PDFへの直リンで穏便に済ませようとしている今日この頃。。。

Filed in [ソフト開発] • Tags:

民主党は独裁政治だ!

By tkumakiti - Last updated: 火曜日, 2月 2, 2010

外国人参政権法案 首相、早期成立に意欲との記事があった。
ナゼそんなに急ぐのか?この法案が成立する先に一体何があるのか?
何も語られないまま、ただ「早期成立」を急いでいる。
先日外国人参政権法案 首相「理解得られると思う」との記事もあったが、一体だれの理解なのか?
現政権の中だけの理解で決定していい問題なのか?
「我が国の制度の根幹にかかわる重要な問題だけに、与野党に様々な意見があることは理解している」というからには、日本人の国民の理解を得る必要がある。
このように、自分の考えだけで決めて行くのを「独裁政治」と言う。
日本は、(中途半端ながら)議会制民主主義ではないのか?
民主党の言う、議会制民主主義とは、議会による独裁政治を言うのか?
これでは、一党独裁の中国と同じではないか?

ほんとに、日本と言う国、日本人をどのような方向に持っていこうと考えているのか。
中途半端な教育を見ていると、中国の「労働力」として、いうなれば人間牧場として日本を存在させようとしているようにしか見えない。
そして、民主党政権は日本人の投票にたよることなく、外国人の投票により未来永劫安定して行くのだろう。

鳩山首相の「信じてください」と言う言葉は、一体誰を見て行っているのか?
少なくとも、日本人や米国に向かって言っているのでは無いだろう。
ナゼマスコミは、もっと騒がないんだろう????

Filed in 未分類

[ZenCart] テンプレートを追加

By tkumakiti - Last updated: 土曜日, 1月 30, 2010

カテゴリーのタブをボタン化したくて、テンプレートに挑戦しました。
ググッてみたんですが、「テンプレートのディレクトリを作って、管理画面で指定すればOK」な説明だらけで??な状態だったんですが、標準でClassic Templateが設定されているので、それと同じようにすればいけるんだろうって決めて進めました。

とりあえずMAMPでローカルな環境を構築して、スタート!!
あれこれやって、下記のようなディレクトリ構成となりました。
※修正してないファイルもコピーしたので、結構多くなった。。

/shop
-/includes
--/templates
---/hogehoge
template_info.php ← template_nameなんかを編集した
----/common
tpl_box_default_left.php
tpl_box_default_right.php
tpl_box_default_single.php
tpl_box_header.php
tpl_footer.php
tpl_header.php
tpl_main_mage.php
----/css
print_stylesheet.css
stylesheet_new.css
stylesheet_original.css
stylesheet.css
----/images
ボタンのgifファイル
header_bg.jpg ← ヘッダー画像を入れ替えた
scr_template_default.jpg
----/templates
tpl_modules_categories_tabs.php ← タブ関係を編集した
--/languages
---/japanese
----/hogehoge
header.php
page_2.php
page_3.php
shopping_cart.php
----/html_includes
-----/hogehoge
※ここは、全体的に編集した
define_conditions.php
define_main_page.php
define_page_2.php
define_privacy.php
define_shippinginfo.php

テンプレートの選択でテンプレート名が表示されるので、選択して、サイドボックスをリセットして完了!

ところで、サイトボックスのpage2/page3/page4のタイトルの入れ替えを
/var/www/html/shop/includes/languages/japanese.php
でやってる。これはhogehoge以下で管理できないのかな〜。。

Filed in [Tools] • Tags: