plagger環境構築までの道2 足りないモジュールを手動で追加してみる→無謀でした
- plagger
- Plagger最新版をSVNで入手する。 - 適宜覚書はてな異本
- 結論 手動でモジュール入れるのはさすがに無理ぽ。
$ svn co http://svn.bulknews.net/repos/plagger/trunk/plagger リビジョン 2063 をチェックアウトしました。 $ cd plagger $ perl Makefile.PL Can't locate inc/Module/Install.pm in @INC とりあえずperl-5.12.1でplaggerをインストールするために必要なモジュールを エラー出たらひたすらwget モジュール、perl Makefile.PL && make && make install (上から順に入れると依存関係にひっかからない) File::Remove JSON HTML::Tagset HTML::Parser URI LWP::UserAgent Module::ScanDeps PAR::Dist YAML::Tiny YAML Spiffy Test-Base Module::Install Class::Accessor::Fast Number::Compare Text::Glob File::Find::Rule UNIVERSAL::require Template Template::Provider::Encoding Text::Tags List::MoreUtils Params::Validate DateTime::Locale Class::Singleton DateTime::TimeZone Sub::Uplevel Test::Exception DateTime DateTime::Format::Mail DateTime::Format::W3CDTF DateTime::Format::Strptime Class::ErrorHandler DB_File (Berkeley DB need ex. db-4.8.30.NC.tar.gz) Date::Parse Digest::SHA1 File::NFSLock Heap::Fibonacci IO::String Cache URI::Fetch IPC::ShareLite Error Cache::Cache Module::Pluggable::Fast HTML::ResolveLink Test::Pod MIME::Types Socket6 IO::Socket::INET6 Digest::HMAC_MD5 Net::IP Net::DNS Feed::Find Class::Data::Inheritable XML::NamespaceSupport XML::SAX XML::LibXML (libxml2 need ex. libxml2-git-snapshot.tar.gz) XML::Parser (expat need ex. expat-2.0.1.tar.gz) XML::XPath XML::Atom Test::Manifest XML::RSS XML::Feed XML::RSS::LibXML Term::Encoding IPC::Run3 Probe::Perl Test::Script File::Which File::HomeDir Encode::Detect Devel::Symdump Pod::Coverage Test::Pod::Coverage Algorithm::Diff Text::Diff HTTP::Cookies::Mozilla need XML::Liberal need XML::RSS::Liberal …際限なく増えてく。。
- モジュールインストールトラブルなど
- DateTime は Makefile.PL が無い。 perl Build.PL ; perl Build ; perl Build install
- Berkeley DB と DB_File モジュール - handlerの日記
- http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html db-4.8.30.NC.tar.gz
$ tar xzvf db-4.8.30.NC.tar.gz $ cd db-4.8.30/build_unix/ $ mkdir $HOME/usr/local/BerkeleyDB.4.8 $ ../dist/configure --prefix=$HOME/usr/local/BerkeleyDB.4.8 $ make $ make install $ cd - $ cd DB_File-1.820 $ diff -Naur config.in{.org,} --- config.in.org 2009-03-28 22:38:14.000000000 +0900 +++ config.in 2010-08-21 05:40:56.000000000 +0900 @@ -9,7 +9,7 @@ # Change the path below to point to the directory where db.h is # installed on your system. -INCLUDE = /usr/local/BerkeleyDB/include +INCLUDE = /home/mio/usr/local/BerkeleyDB.4.8/include #INCLUDE = /usr/local/include #INCLUDE = /usr/include @@ -18,7 +18,7 @@ # Change the path below to point to the directory where libdb is # installed on your system. -LIB = /usr/local/BerkeleyDB/lib +LIB = /home/mio/usr/local/BerkeleyDB.4.8/lib #LIB = /usr/local/lib #LIB = /usr/lib $ perl Makefile.PL $ make $ make install
$ wget ftp://xmlsoft.org/libxml2/libxml2-git-snapshot.tar.gz $ tar xzvf libxml2-git-snapshot.tar.gz $ cd libxml2-2.7.7 $ ./configure --prefix=$HOME/usr/local configure: error: cannot find macro directory `m4' $ mkdir m4 $ ./configure --prefix=$HOME/usr/local/ checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... configure: error: newly created file is older than distributed files! Check your system clock // ↑時計ずれてた ntpdate で時計あわせて成功 $ ./configure --prefix=$HOME/usr/local/ $ make $ make install
Expat XML Parser | Download Expat XML Parser software for free at SourceForge.net
$ wget http://downloads.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fexpat%2Ffiles%2F&ts=1282374486&mirror=jaist $ tar xzvf expat-2.0.1.tar.gz $ cd expat-2.0.1 $ ./configure --prefix=$HOME/usr/local $ make $ make install $ cd - $ perl Makefile.PL EXPATINCPATH=$HOME/usr/local/include/ EXPA TLIBPATH=$HOME/usr/local/lib/ $ make $ make install