2007-04-30 ubuntu feistyにcpanとplaggerをユーザ領域にインスコ

参考
perl-native is broken on feisty
Software Design 2006年10月号のPlagger特集のメモ
ほとんど、一緒なんだが自分用のメモに
1. Stable の Perlをホームディレクトリにインスコ
% mkdir local % mkdir src % cd src % wget http://cpan.org/src/stable.tar.gz % tar xvfz stable.tar.gz % cd perl-5.8.8/ % sudo dpkg-reconfigure dash Install dash as /bin/sh? いいえ % sh Configure -des -Dprefix=$HOME/local (-Duse64bitint) % make depend % make % make test % make install
2.環境変数設定
export PATH=$HOME/local/bin:$PATH export PERL5LIB=$HOME/local/lib/perl5/5.8.8:$HOME/local/lib/perl5/site_perl/5.8.8 export PERL_BADLANG=0
% echo no | cpan
3.1 Config.pmの編集
'make_install_arg' => q[SITEPREFIX=$HOME/local], 'makepl_arg' => q[INSTALLDIRS=site LIB=$HOME/local/lib/perl5/site_perl/5.8.8 PREFIX=$HOME/local], 'mbuildpl_arg' => q[./Build --install_base $HOME/local], 'urllist' => [q[http://cpan-2.mirrors.nks.net/]],
cpan> install Bundle::CPAN
自分の場合は、なんかうまくいかなかったので自力w・・なんでだろ
% cd .cpan/build/CPAN-1.9xxx % perl Makefile.PL % make % make install
cpan たたいた時、commitせいやとか聞かれたら
cpan> o conf commit
念のため、Config.pmもチェック
4.Plagger
4.1 不足していたパッケージをインスコ
% sudo apt-get install libexpat1-dev % sudo apt-get install libxml2-dev % sudo apt-get install libio-socket-ssl-perl libnet-ssleay-perl libssl-dev
4.2 以下実行
cpan -fi Config::Simple cpan -fi YAML < /dev/null cpan -fi Module::Build cpan -fi ExtUtils::CBuilder cpan -fi ExtUtils::ParseXS cpan -fi Test::More cpan -fi Test::Pod < /dev/null cpan -fi Test::Pod::Coverage < /dev/null cpan -fi Exporter::Lite cpan -fi Net::SSLeay makepl_argの先頭に--を入れる cpan -fi IO::Socket::SSL cpan -fi Crypt::SSLeay < /dev/null cpan -fi XML::Parser cpan -fi XML::Simple cpan -fi XML::LibXML < /dev/null cpan -fi XML::SimpleObject cpan -fi XML::XPathEngine cpan -fi XML::Liberal < /dev/null cpan -fi XML::FOAF < /dev/null cpan -fi XMLRPC::Lite < /dev/null cpan -fi HTML::TreeBuilder < /dev/null cpan -fi HTML::Scrubber cpan -fi HTML::ResolveLink cpan -fi IPC::Run cpan -fi HTTP::Cookies::Mozilla < /dev/null cpan -fi WebService::Bloglines cpan -fi WWW::Mechanize < /dev/null cpan -fi WWW::Mixi < /dev/null cpan -fi JSON::Syck cpan -fi URI::Find cpan -fi Data::Dump cpan -fi Module::Install < /dev/null cpan -fi Spreadsheet::WriteExcel < /dev/null cpan -fi Log::Dispatch cpan -fi IO::AtomicFile cpan -fi Net::Delicious::Constants::Api cpan -fi SWF::Builder < /dev/null cpan -fi Encode::Builder < /dev/null cpan -fi Plagger < /dev/null