2005年08月28日
ユーザ権限でのインストール(XML::Atom)
- ikepon
- 2005年08月28日
- コメントする
- カテゴリー:MovableType
MTをユーザ権限で全部動かしてみようと思います。
次はXML::Atomのインストールを行ってみたいと思います。
まずはCPANでXML::Atomが含まれているモジュールを探したいと思います。
次のURLからCPANにアクセスします。
http://search.cpan.org/
XML::Atomを検索するとXML-Atomに含まれていることが判明しました。
次のURLからCrypt-DSA-0.13.tar.gzをダウンロードします。
http://search.cpan.org/~miyagawa/XML-Atom-0.13/
インストールは次のようにしてインストールします。
tar zxvf XML-Atom-0.13.tar.gz cd XML-Atom-0.13 /home/ikepon.jp/perl/bin/perl Makefile.PL *** ExtUtils::AutoInstall version 0.61 *** Checking for dependencies... [Core Features] - XML::LibXML ...missing. (would need 1.54) - MIME::Base64 ...loaded. (3.01) - URI ...missing. ==> Auto-install the 2 mandatory module(s) from CPAN? [y] ^C
XML::LibXML、URIが足りないようなので再びCPANにて検索します。
XML-LibXML、URIに含まれていることが判明しました。
次のURLからXML-LibXML-1.58_1.tar.gzをダウンロードします。
http://search.cpan.org/~phish/XML-LibXML-1.58/
次のURLからURI-1.35.tar.gzをダウンロードします。
http://search.cpan.org/~gaas/URI-1.35/
XML-LibXMLを次のようにしてインストールします。
tar zxvf XML-LibXML-1.58_1.tar.gz
cd XML-LibXML-1.58_1
/home/ikepon.jp/perl/bin/perl Makefile.PL
enable native perl UTF8
running xml2-config...untested
WARNING!
The installed version of libxml2 was not tested with this version of XML::LibXML.
XML::LibXML may fail building or some tests may not pass.
Expect strange errors and unstable scripts.
Check the README file for more informations
END OF WARNING
looking for -lxml2... yes
Warning: prerequisite XML::LibXML::Common 0 not found.
Warning: prerequisite XML::NamespaceSupport 1.07 not found.
Warning: prerequisite XML::SAX 0.11 not found.
Writing Makefile for XML::LibXML
XML::LibXML::Common、XML::NamespaceSupport、XML::SAXが足りないようなので再びCPANにて検索します。
XML-LibXML-Common、XML-NamespaceSupport、XML-SAX、に含まれていることが判明しました。
次のURLからXML-LibXML-Common-0.13.tar.gzをダウンロードします。
http://search.cpan.org/~phish/XML-LibXML-Common-0.13/
次のURLからXML-NamespaceSupport-1.09.tar.gzをダウンロードします。
http://search.cpan.org/~rberjon/XML-NamespaceSupport-1.09/
次のURLからXML-SAX-0.12.tar.gzをダウンロードします。
http://search.cpan.org/~msergeant/XML-SAX-0.12/
XML-LibXML-Commonを次のようにしてインストールします。
tar zxvf XML-LibXML-Common-0.13.tar.gz cd XML-LibXML-Common-0.13 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
XML-NamespaceSupportを次のようにしてインストールします。
tar zxvf XML-NamespaceSupport-1.09.tar.gz cd XML-NamespaceSupport-1.09 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
XML-SAX-0.12を次のようにしてインストールします。
tar zxvf XML-SAX-0.12.tar.gz cd XML-SAX-0.12 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
XML-LibXMLに戻ってインストールします。
cd XML-LibXML-1.58_1 /home/ikepon.jp/perl/bin/perl Makefile.PL /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
URIに戻ってインストールします。
tar zxvf URI-1.35.tar.gz cd URI-1.35 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
XML-Atom-0.13に戻ってインストールします。
cd XML-Atom-0.13 /home/ikepon.jp/perl/bin/perl Makefile.PL *** ExtUtils::AutoInstall version 0.61 *** Checking for dependencies... [Core Features] - XML::LibXML ...loaded. (1.58 >= 1.54) - MIME::Base64 ...loaded. (3.01) - URI ...loaded. (1.35) [Client/Server for Atom API] - LWP ...missing. - LWP::Authen::Wsse ...missing. - Digest::SHA1 ...loaded. (2.10) - DateTime ...missing. ==> Auto-install the 3 optional module(s) from CPAN? [y] ^C
LWP、LWP::Authen::Wsse、DateTimeが足りないようなので再びCPANにて検索します。
LWP、LWP-Authen-Wsse、DateTime、に含まれていることが判明しました。
次のURLからlibwww-perl-5.803.tar.gzをダウンロードします。
http://search.cpan.org/~gaas/libwww-perl-5.803/
次のURLからLWP-Authen-Wsse-0.04.tar.gzをダウンロードします。
http://search.cpan.org/~autrijus/LWP-Authen-Wsse-0.04/
次のURLからDateTime-0.2901.tar.gzをダウンロードします。
http://search.cpan.org/~drolsky/DateTime-0.2901/
LWPを次のようにしてインストールします。
tar zxvf libwww-perl-5.803.tar.gz cd libwww-perl-5.803 /home/ikepon.jp/perl/bin/perl Makefile.PL This package comes with some sample programs that I can try to install in /home/ikepon.jp/perl/bin. Note that you can avoid these questions by passing the '-n' option to 'Makefile.PL'. Do you want to install lwp-request? [y] ^C -nオプションを付けて実行しましょう。 /home/ikepon.jp/perl/bin/perl Makefile.PL -n Checking for URI........... ok Checking for HTML::Parser.. ok Checking for MIME::Base64.. ok Checking for Net::FTP...... ok Checking for Digest::MD5 .. ok Checking if your kit is complete... Looks good Warning: prerequisite Compress::Zlib 1.10 not found. Writing Makefile for libwww-perl
Compress::Zlibが足りないようなので再びCPANにて検索します。
Compress-Zlibに含まれていることが判明しました。
次のURLからLWP-Authen-Wsse-0.04.tar.gzをダウンロードします。
http://search.cpan.org/~pmqs/Compress-Zlib-1.37/
Compress-Zlibを次のようにしてインストールします。
tar zxvf Compress-Zlib-1.37.tar.gz cd Compress-Zlib-1.37 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
LWPに戻ってインストールします。
cd libwww-perl-5.803 /home/ikepon.jp/perl/bin/perl Makefile.PL -n gmake gmake test gmake install
LWP-Authen-Wsseを次のようにしてインストールします。
tar zxvf LWP-Authen-Wsse-0.04.tar.gz cd LWP-Authen-Wsse-0.04 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
DateTimeを次のようにしてインストールします。
tar zxvf DateTime-0.2901.tar.gz cd DateTime-0.2901 /home/ikepon.jp/perl/bin/perl Makefile.PL Testing if you have a C compiler cc -O -pipe -c test.c Checking if your kit is complete... Looks good Warning: prerequisite DateTime::Locale 0.21 not found. Warning: prerequisite DateTime::TimeZone 0.26 not found. Warning: prerequisite Params::Validate 0.76 not found. Writing Makefile for DateTime
DateTime::Locale、DateTime::TimeZone、Params::Validateが足りないようなので再びCPANにて検索します。
DateTime-Locale、DateTime-TimeZone、Params-Validateに含まれていることが判明しました。
次のURLからDateTime-Locale-0.22.tar.gzをダウンロードします。
http://search.cpan.org/~drolsky/DateTime-Locale-0.22/
次のURLからDateTime-TimeZone-0.37.tar.gzをダウンロードします。
http://search.cpan.org/~drolsky/DateTime-TimeZone-0.37/
次のURLからParams-Validate-0.78.tar.gzをダウンロードします。
http://search.cpan.org/~drolsky/Params-Validate-0.78/
DateTime-Localeを次のようにしてインストールします。
tar zxvf DateTime-Locale-0.22.tar.gz cd DateTime-Locale-0.22 /home/ikepon.jp/perl/bin/perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Params::Validate 0 not found. Writing Makefile for DateTime::Locale
Params-Validateを先にインストールします。
tar zxvf Params-Validate-0.78.tar.gz cd Params-Validate-0.78 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
DateTime-Localeに戻ってインストールします。
cd DateTime-Locale-0.22 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
DateTime-TimeZoneを次のようにしてインストールします。
tar zxvf DateTime-TimeZone-0.37.tar.gz cd DateTime-TimeZone-0.37 /home/ikepon.jp/perl/bin/perl Makefile.PL This module requires Module::Build to install itself. Install Module::Build now from CPAN? [y] ^C
Module::Buildが足りないようなので再びCPANにて検索します。
Module-Buildに含まれていることが判明しました。
次のURLからModule-Build-0.2611.tar.gzをダウンロードします。
http://search.cpan.org/~kwilliams/Module-Build-0.2611/
Module-Buildを次のようにしてインストールします。
tar zxvf Module-Build-0.2611.tar.gz cd Module-Build-0.2611 /home/ikepon.jp/perl/bin/perl Makefile.PL # running Build.PL /home/ikepon.jp/perl/bin/perl -Ilib Build.PL Checking whether your kit is complete... Looks good * Optional prerequisite Module::Signature isn't installed * Optional prerequisite ExtUtils::ParseXS isn't installed * Optional prerequisite Archive::Tar isn't installed * Optional prerequisite ExtUtils::CBuilder isn't installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation. Feature 'YAML_support' disabled because of the following prerequisite failures: * Prerequisite YAML isn't installed Creating new 'Build' script for 'Module-Build' version '0.2611'
Module::Signature、ExtUtils::ParseXS、Archive::Tar、ExtUtils::CBuilderが足りないようなので再びCPANにて検索します。
Module-Signature、ExtUtils-ParseXS、Archive-Tar、ExtUtils-CBuilderに含まれていることが判明しました。
次のURLからModule-Signature-0.50.tar.gzをダウンロードします。
http://search.cpan.org/~autrijus/Module-Signature-0.50/
次のURLからExtUtils-ParseXS-2.12.tar.gzをダウンロードします。
http://search.cpan.org/~kwilliams/ExtUtils-ParseXS-2.12/
次のURLからArchive-Tar-1.26.tar.gzをダウンロードします。
http://search.cpan.org/~kane/Archive-Tar-1.26/
次のURLからExtUtils-CBuilder-0.13.tar.gzをダウンロードします。
http://search.cpan.org/~kwilliams/ExtUtils-CBuilder-0.13/
Module-Signatureを次のようにしてインストールします。
tar zxvf Module-Signature-0.50.tar.gz cd Module-Signature-0.50 /home/ikepon.jp/perl/bin/perl Makefile.PL *** Looking for GnuPG (GNU Privacy Guard, a cryptographic signature tool)... gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.org/faq.html for more information gpg: keyring `/home/ikepon.jp/.gnupg/pubring.gpg' created GnuPG found (/usr/local/bin/gpg). Import PAUSE and author keys to GnuPG? [y]ここではそのままEnter Importing... gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.org/faq.html for more information done. *** ExtUtils::AutoInstall version 0.62 *** Checking for dependencies... [Core Features] - Test::More ...loaded. (0.47) [Sign and verify PAR (Perl Archive) files] - PAR::Dist ...missing. ==> Auto-install the 1 optional module(s) from CPAN? [n] ^C
PAR::Distが足りないようなので再びCPANにて検索します。
PAR-Distに含まれていることが判明しました。
次のURLからPAR-Dist-0.07.tar.gzをダウンロードします。
http://search.cpan.org/~autrijus/PAR-Dist-0.07/
PAR-Distを次のようにしてインストールします。
tar zxvf PAR-Dist-0.07.tar.gz cd PAR-Dist-0.07 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
Module-Signatureに戻ってインストールします。
cd Module-Signature-0.50 /home/ikepon.jp/perl/bin/perl Makefile.PL *** Looking for GnuPG (GNU Privacy Guard, a cryptographic signature tool)... gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.org/faq.html for more information GnuPG found (/usr/local/bin/gpg). Import PAUSE and author keys to GnuPG? [y] Importing... gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.org/faq.html for more information done. *** ExtUtils::AutoInstall version 0.62 *** Checking for dependencies... [Core Features] - Test::More ...loaded. (0.47) [Sign and verify PAR (Perl Archive) files] - PAR::Dist ...loaded. (0.07) [Support for SHA-256] - Digest::SHA ...missing. ==> Auto-install the 1 optional module(s) from CPAN? [n] ^C
Digest::SHAが足りないようなので再びCPANにて検索します。
Digest-SHAに含まれていることが判明しました。
次のURLからDigest-SHA-5.30.tar.gzをダウンロードします。
http://search.cpan.org/~mshelor/Digest-SHA-5.30/
Digest-SHAを次のようにしてインストールします。
tar zxvf Digest-SHA-5.30.tar.gz cd Digest-SHA-5.30 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
Module-Signatureに戻ってインストールします。
cd Module-Signature-0.50 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
ExtUtils-ParseXSを次のようにしてインストールします。
tar zxvf ExtUtils-ParseXS-2.12.tar.gz cd ExtUtils-ParseXS-2.12 /home/ikepon.jp/perl/bin/perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite ExtUtils::CBuilder 0 not found. Writing Makefile for ExtUtils::ParseXS
ExtUtils-CBuilderを先にインストールします。
tar zxvf ExtUtils-CBuilder-0.13.tar.gz cd ExtUtils-CBuilder-0.13 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
Archive-Tarを次のようにしてインストールします。
tar zxvf Archive-Tar-1.26.tar.gz cd Archive-Tar-1.26 /home/ikepon.jp/perl/bin/perl Makefile.PL You do not have IO::Zlib installed. This means you can not read or write compressed archive! Note: you can disable this warning (and the prerequisite) by invoking Makefile.PL with '-n' Archive::Tar comes with a utility called 'ptardiff' which lets you run diffs against tar archives. However, this utility requires you to have Text::Diff installed. To add Text::Diff as a prerequisite, please supply the '-d' option when invoking this Makefile.PL. Checking if your kit is complete... Looks good Warning: prerequisite IO::Zlib 1.01 not found. Writing Makefile for Archive::Tar
IO::Zlibが足りないようなので再びCPANにて検索します。
IO-Zlibに含まれていることが判明しました。
次のURLからIO-Zlib-1.04.tar.gzをダウンロードします。
http://search.cpan.org/~tomhughes/IO-Zlib-1.04/
IO-Zlibを次のようにしてインストールします。
tar zxvf IO-Zlib-1.04.tar.gz cd IO-Zlib-1.04 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
Archive-Tarに戻ってインストールします。
cd Archive-Tar-1.26 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
Module-Buildに戻ってインストールします。
cd Module-Build-0.2611 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
DateTime-TimeZoneに戻ってインストールします。
cd DateTime-TimeZone-0.37 /home/ikepon.jp/perl/bin/perl Makefile.PL # running Build.PL /home/ikepon.jp/perl/bin/perl -I_build/lib Build.PL Checking whether your kit is complete... Looks good * ERROR: Prerequisite Class::Singleton isn't 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 'Build' script for 'DateTime-TimeZone' version '0.37'
Class::Singletonが足りないようなので再びCPANにて検索します。
Class-Singletonに含まれていることが判明しました。
次のURLからClass-Singleton-1.03.tar.gzをダウンロードします。
http://search.cpan.org/~abw/Class-Singleton-1.03/
Class-Singletonを次のようにしてインストールします。
tar zxvf Class-Singleton-1.03.tar.gz cd Class-Singleton-1.03 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
DateTime-TimeZoneに戻ってインストールします。
cd DateTime-TimeZone-0.37 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
DateTimeに戻ってインストールします。
cd DateTime-0.2901 /home/ikepon.jp/perl/bin/perl Makefile.PL gmake gmake test gmake install
XML-Atomに戻ってインストールします。
make testでエラーが出ますが気にせずインストールします。
cd XML-Atom-0.13
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
PERL_DL_NONLAZY=1 /home/ikepon.jp/perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-compile.t t/01-util.t t/02-content.t t/03-link.t t/04-person.t t/11-entry.t t/12-feed.t t/13-atom1.t
t/00-compile....ok
t/01-util.......ok
t/02-content....ok
t/03-link.......ok
t/04-person.....ok
t/11-entry......ok 54/71t/samples/entry-euc.xml:1: parser error : Unsupported encoding euc-jp
<?xml version="1.0" encoding="euc-jp"?>
^
at /home/ikepon.jp/mt3/XML-Atom-0.13/blib/lib/XML/Atom/Thing.pm line 44
t/11-entry......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 70-71
Failed 2/71 tests, 97.18% okay
t/12-feed.......ok
t/13-atom1......ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/11-entry.t 255 65280 71 4 5.63% 70-71
Failed 1/8 test scripts, 87.50% okay. 2/179 subtests failed, 98.88% okay.
gmake: *** [test_dynamic] Error 2
gmake install
次のURLにアクセスして、XML::Atomがインストールされているのが確認します。
http://www.ikepon.jp/mt/mt-check.cgi
最終的に、インストールするためのスクリプトは次のようになります。
install_XML_Atom.sh
#!/bin/sh
BUILD_HOME=`pwd`
cd ${BUILD_HOME}
tar zxf XML-LibXML-Common-0.13.tar.gz
cd XML-LibXML-Common-0.13
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf XML-NamespaceSupport-1.09.tar.gz
cd XML-NamespaceSupport-1.09
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf XML-SAX-0.12.tar.gz
cd XML-SAX-0.12
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf XML-LibXML-1.58_1.tar.gz
cd XML-LibXML-1.58_1
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf URI-1.35.tar.gz
cd URI-1.35
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf Compress-Zlib-1.37.tar.gz
cd Compress-Zlib-1.37
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf libwww-perl-5.803.tar.gz
cd libwww-perl-5.803
/home/ikepon.jp/perl/bin/perl Makefile.PL -n
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf LWP-Authen-Wsse-0.04.tar.gz
cd LWP-Authen-Wsse-0.04
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf Params-Validate-0.78.tar.gz
cd Params-Validate-0.78
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf DateTime-Locale-0.22.tar.gz
cd DateTime-Locale-0.22
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf PAR-Dist-0.07.tar.gz
cd PAR-Dist-0.07
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf Digest-SHA-5.30.tar.gz
cd Digest-SHA-5.30
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf Module-Signature-0.50.tar.gz
cd Module-Signature-0.50
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf ExtUtils-CBuilder-0.13.tar.gz
cd ExtUtils-CBuilder-0.13
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf ExtUtils-ParseXS-2.12.tar.gz
cd ExtUtils-ParseXS-2.12
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf IO-Zlib-1.04.tar.gz
cd IO-Zlib-1.04
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf Archive-Tar-1.26.tar.gz
cd Archive-Tar-1.26
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf Module-Build-0.2611.tar.gz
cd Module-Build-0.2611
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf Class-Singleton-1.03.tar.gz
cd Class-Singleton-1.03
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf DateTime-TimeZone-0.37.tar.gz
cd DateTime-TimeZone-0.37
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf DateTime-0.2901.tar.gz
cd DateTime-0.2901
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
cd ${BUILD_HOME}
tar zxf XML-Atom-0.13.tar.gz
cd XML-Atom-0.13
/home/ikepon.jp/perl/bin/perl Makefile.PL
gmake
gmake test
gmake install
"ユーザ権限でのインストール(XML::Atom)"へのコメントはまだありません。