CPANにてモジュールの確認

手始めに、
install LWP::Simple Bundle::LWP Bundle::CPAN HTTP::Date Jcode

Intel Macの場合、次のモジュールは導入を拒否。
    Mac::Carbon [requires]
    Mac::Files [requires]

どんどん行きまっせぇ〜
MT3, MT4に必要なモジュールも入れちまう。

install CGI HTML::Template Image::Size File::Spec CGI::Cookie

ちょっと、テスト関係のモジュールも入れてみたりする。

install Devel::Symdump Pod::Coverage Test::Base Test::Pod::Coverage Test::Pod
install Test::Tester Test::Exception Test::Warn Test::NoWarnings Parse::RecDescent
install Pod::Strip Test::Deep Test::Perl::Critic Test::Memory::Cycle
install Test::Distribution Test::Portability::Files
install Test::Taint Readonly::XS

install Module::CPANTS::Analyse
install Test::Kwalitee
...うまくできない場合もあるのだが、気にしないのだ。

install DB_File DBI HTML::Entities LWP::UserAgent
install DateTime::Format::Strptime DateTime LWP::Authen::Wsse Digest::SHA1
install bignum Math::BigInt Math::BigRat Digest::BubbleBabble
install File::Temp Storable Crypt::DSA MIME::Base64
install Date::Manip IO::Tty Parse::Yapp::Driver
install Email::Valid::Loose
install RPC::PlClient RPC::PlServer Net::Daemon

install Archive::Zip Compress::Zlib Convert::TNEF Convert::UUlib MIME::Base64 MIME::Parser
install Mail::Internet Net::Server Digest::MD5 IO::Stringy Time::HiRes Unix::Syslog Math::GMP

MySQLが導入されているのなら...導入していたので...
install DBD::mysql
->MakeFile.PLを書き直さなければならない...追記


install XML::Parser
->見事に失敗
手動で導入。
perl Makefile.PL EXPATLIBPATH=/usr/local/lib/perl5/5.8.8/darwin-2level  EXPATINCPATH=/usr/local/include

次もなんとか導入できるはず。

install XML::DOM
install XML::Atom

いよいよ、ClamAV関係モジュールの導入。

install ClamAV::Client ClamAV::Config
install Inline::C
install Mail::ClamAV

install SOAP::Lite
install Text::Iconv
...なんだか、うまくできない。気にしない。

install Socket6
install IO::Socket::INET6
install Net::DNS::Resolver
... DNSがちゃんと動いていないと失敗する。
CPANをだますなら、外部接続テストをしないこと。

o conf makepl_arg '--noxs --no-online-tests'
install Net::DNS::Resolver

install Net::LDAP Authen::SASL
...
These tests *will* *fail* if you do not have network connectivity. [y] n
当然、NO!


========== ========== ========== ========== ==========
    Razor2
http://razor.sourceforge.net/
razor-agents-2.84.tar.bz2
razor-agents-sdk-2.07.tar.bz2
========== ========== ========== ========== ==========
これらも導入しておく必要があるようだ。
基本的には、普通のPerlモジュールの導入と同じ。

tar jxvf razor-agents-2.84.tar.bz2
cd razor-agents-2.84
perl Makefile.PL
make ; make test
make install

tar jxvf razor-agents-sdk-2.07.tar.bz2
cd razor-agents-sdk
perl Makefile.PL
make ; make test
make install


念のため、
CPAN> upgrade
なんてこともしてみたりする。



========== ========== ========== ========== ==========
    Mail::SpamAssassin
========== ========== ========== ========== ==========
READMEによると、次のモジュールが必要らしい。

install HTML::Parser
install Mail::DomainKeys
install IP::Country
install Mail::SPF::Test
install Mail::SPF
install Mail::SPF::Query
 -> namedがきちんと動いていないと失敗する。
install IO::Socket::INET6
install Mail::DKIM
install Data::Dump
install Encode::Detect

# install Net::Ident ... 導入できない。必要ないかも。


で、install Mail::SpamAssassinだが...
make
の後で、t/config.distを編集。

vi t/config.dist
user_awl_sql_username=UserNAME
user_awl_sql_password=User'sPW
bayes_sql_username=UserNAME
bayes_sql_password=User'sPW

これらを設定しておかないと、make testでコケる。

make test
make install

へい、お疲れさま。


そうそう、うまく導入できたりできなかったり、したモジュールが、
XML::ParserとNet::SSLeay
perl5.8.8でうまくできなかったので、perl5.10.0に上げちまった。

於CPAN
o conf makepl_arg 'INSTALLDIRS=site LIB=/usr/local/lib/perl5 PREFIX=/usr/local/lib/perl5/5.8.8/CPAN EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include'
install XML::Parser

o conf makepl_arg '-- INSTALLDIRS=site LIB=/usr/local/lib/perl5 PREFIX=/usr/local/lib/perl5/5.8.8/CPAN'
install Net::SSLeay

とか。

cd Net-SSLeay-xxxxx/
perl Makefile.PL -path /usr/bin CCFLAGS='-I/usr/local/include +e'
とか。

単に、
install Net::SSLeay
でよかったり...

悩んでいても仕方ない。
それなりに導入できたのだし。
force installはしなかったし。
いいことにするのだっ

Makefile.PL

sub dynamic_lib {
  my $self = shift;
  my $result = $self->SUPER::dynamic_lib(@_);
  if (!$::opt->{nocatchstderr}  &&  $result =~ /\$\(LD\)/) {
    $result =~ s/(\$\(LD\))/\$\(PERL\) myld \$(LD)/sg;
  }
  return $result;
}

->

sub dynamic_lib {
  my $self = shift;
  my $result = $self->SUPER::dynamic_lib(@_);
  if (!$::opt->{nocatchstderr}  &&  $result =~ /\$\(LD\)/) {
    $result =~ s/(\$\(LD\))/\$\(PERL\) \.\/myld \$(LD)/sg;
  }
  return $result;}


もう一つ,おまいじない。
/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
が見つからない,と言ってくる可能性が有るので...上記の変更に伴って...
cd /usr/local/mysql/lib/
ln -s . mysql


それと,ユーザー名とパスワードの指定も必要。
perl Makefile.PL \
        --libs="-L/usr/local/mysql/lib -lmysqlclient -lz -lm" \
        --cflags="-I/usr/local/mysql/include -Os -arch i686 -arch ppc -fno-common" \
        --testhost=127.0.0.1 -testuser=toor -testpassword=vndkeusd

トラックバック(0)

このブログ記事を参照しているブログ一覧: CPANにてモジュールの確認

このブログ記事に対するトラックバックURL: http://www.kumecchi.net/mt/mt-tb.cgi/1971

コメントする

QRコード

QRコード対応携帯からアクセスできます
QRコード対応携帯からアクセスできます  
Creative Commons License
このブログのライセンスは クリエイティブ・コモンズライセンス.
Powered by Movable Type 7.0.1

Yahoo!ブログの記事


Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:23: parser error : Opening and ending tag mismatch: meta line 20 and head in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </head> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:34: parser error : xmlParseEntityRef: no name in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): �っと便利に<a href="https://account.edit.yahoo.co.jp/registration?.src=shp& in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:58: parser error : Opening and ending tag mismatch: br line 20 and p in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </p> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:59: parser error : Opening and ending tag mismatch: br line 20 and section in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </section> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:68: parser error : Opening and ending tag mismatch: img line 20 and a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): cialproducts/blog/promo/close/img/img_ameba.png" alt="アメーバブログ"></a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:69: parser error : Opening and ending tag mismatch: a line 20 and dt in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dt> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:72: parser error : Opening and ending tag mismatch: dt line 20 and dl in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dl> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:74: parser error : Opening and ending tag mismatch: img line 20 and a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): oducts/blog/promo/close/img/img_livedoor.png" alt="ライブドアブログ"></a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:75: parser error : Opening and ending tag mismatch: a line 20 and dt in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dt> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:78: parser error : Opening and ending tag mismatch: dt line 20 and dl in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dl> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:80: parser error : Opening and ending tag mismatch: img line 20 and a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): es/socialproducts/blog/promo/close/img/img_seesaa.png" alt="Seesaaブログ"></a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:81: parser error : Opening and ending tag mismatch: a line 20 and dt in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dt> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:84: parser error : Opening and ending tag mismatch: dt line 20 and dl in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dl> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:86: parser error : Opening and ending tag mismatch: img line 20 and a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): socialproducts/blog/promo/close/img/img_hatena.png" alt="はてなブログ"></a in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:87: parser error : Opening and ending tag mismatch: a line 20 and dt in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dt> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:90: parser error : Opening and ending tag mismatch: dt line 20 and dl in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </dl> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:91: parser error : Opening and ending tag mismatch: dl line 20 and div in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </div> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:93: parser error : Opening and ending tag mismatch: dl line 20 and section in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </section> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:102: parser error : Entity 'nbsp' not defined in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): a href="https://privacy.yahoo.co.jp/" target="_top">プライバシー</a>&nbsp; in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:102: parser error : Entity 'nbsp' not defined in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ="https://privacy.yahoo.co.jp/" target="_top">プライバシー</a>&nbsp;-&nbsp in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:103: parser error : Entity 'nbsp' not defined in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): https://about.yahoo.co.jp/docs/info/terms/" target="_top">利用規約</a>&nbsp; in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:103: parser error : Entity 'nbsp' not defined in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): //about.yahoo.co.jp/docs/info/terms/" target="_top">利用規約</a>&nbsp;-&nbsp in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:104: parser error : Entity 'nbsp' not defined in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): /info/mediastatement/" target="_top">メディアステートメント</a>&nbsp; in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:104: parser error : Entity 'nbsp' not defined in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): mediastatement/" target="_top">メディアステートメント</a>&nbsp;-&nbsp in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:109: parser error : Opening and ending tag mismatch: br line 20 and footer in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </footer> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:111: parser error : Opening and ending tag mismatch: footer line 20 and body in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </body> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:113: parser error : Opening and ending tag mismatch: dl line 20 and html in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): </html> in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): http://blogs.yahoo.co.jp/isoriehermuk/rss.xml:115: parser error : EndTag: '</' not found in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Warning: simplexml_load_file(): ^ in /Users/kumecchi/weblog/2008/04/cpan.php on line 674

Notice: Trying to get property 'entry' of non-object in /Users/kumecchi/weblog/2008/04/cpan.php on line 680

Warning: Invalid argument supplied for foreach() in /Users/kumecchi/weblog/2008/04/cpan.php on line 683

アーカイブ