f RedHat 7 安裝Paws::DynamoDB 所碰到的問題 ~ 迪貝之家

Pages

RedHat 7 安裝Paws::DynamoDB 所碰到的問題

安裝Perl 模組,當然是下cpan 指令,但卻出現錯誤

上圖是我仔細查看錯誤後,挑出來的,覺得應該是問題的所在,就拿它去問了谷神囉!!
翻到了一篇文章,它給的建議如下

照它所說, 就下了cpan XML::SAX:Expat指令,嘿嘿!!
又出現錯誤~~天阿!! 心想,怎麼這麼難搞阿!!
再次仔細看了錯誤

好吧~~死馬當活馬醫!! 安裝Fatal 試看看~~
來吧~~下個 cpan Fatal指令
[root@ha1 ~]# cpan Fatal
CPAN: Storable loaded ok (v2.45)
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 08 Aug 2019 19:56:00 GMT
Running install for module 'Fatal'
Running make for P/PJ/PJF/autodie-2.29.tar.gz
CPAN: LWP::UserAgent loaded ok (v6.05)
CPAN: Time::HiRes loaded ok (v1.9725)
Fetching with LWP:
http://mirror.optusnet.com.au/CPAN/authors/id/P/PJ/PJF/autodie-2.29.tar.gz
CPAN: YAML loaded ok (v0.84)
CPAN: Digest::SHA loaded ok (v5.85)
CPAN: Compress::Zlib loaded ok (v2.061)
Checksum for /root/.cpan/sources/authors/id/P/PJ/PJF/autodie-2.29.tar.gz ok
CPAN: File::Temp loaded ok (v0.2301)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20190720)
CPAN.pm: Building P/PJ/PJF/autodie-2.29.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for autodie
Writing MYMETA.yml and MYMETA.json
cp lib/autodie/Util.pm blib/lib/autodie/Util.pm
cp lib/autodie/hints.pm blib/lib/autodie/hints.pm
cp lib/Fatal.pm blib/lib/Fatal.pm
cp lib/autodie/Scope/Guard.pm blib/lib/autodie/Scope/Guard.pm
cp lib/autodie/exception.pm blib/lib/autodie/exception.pm
cp lib/autodie/Scope/GuardStack.pm blib/lib/autodie/Scope/GuardStack.pm
cp lib/autodie/skip.pm blib/lib/autodie/skip.pm
cp lib/autodie.pm blib/lib/autodie.pm
cp lib/autodie/exception/system.pm blib/lib/autodie/exception/system.pm
Manifying blib/man3/autodie::Util.3pm
Manifying blib/man3/autodie::hints.3pm
Manifying blib/man3/Fatal.3pm
Manifying blib/man3/autodie::Scope::Guard.3pm
Manifying blib/man3/autodie::exception.3pm
Manifying blib/man3/autodie::Scope::GuardStack.3pm
Manifying blib/man3/autodie::skip.3pm
Manifying blib/man3/autodie::exception::system.3pm
Manifying blib/man3/autodie.3pm
PJF/autodie-2.29.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ...................... ok
t/args.t ......................... ok
t/author-critic.t ................ skipped: these tests are for testing by the author
t/autodie.t ...................... ok
t/backcompat.t ................... ok
t/basic_exceptions.t ............. ok
t/binmode.t ...................... ok
t/blog_hints.t ................... ok
t/caller.t ....................... ok
t/chmod.t ........................ ok
t/chown.t ........................ ok
t/context.t ...................... ok
t/context_lexical.t .............. ok
t/core-trampoline-slurp.t ........ ok
t/crickey.t ...................... ok
t/critic.t ....................... skipped: Author test. Set $ENV{AUTHOR_TESTING} to true to run.
t/dbmopen.t ...................... ok
t/eval_error.t ................... ok
t/exception_class.t .............. ok
t/exceptions.t ................... ok
t/exec.t ......................... ok
t/Fatal.t ........................ ok
t/filehandles.t .................. ok
t/fileno.t ....................... ok
t/flock.t ........................ ok
t/fork.t ......................... skipped: BSD::Resource required to test fork()
t/format-clobber.t ............... ok
t/hints.t ........................ # Sub::Identify is loaded
t/hints.t ........................ ok
t/hints_insist.t ................. ok
t/hints_pod_examples.t ........... ok
t/hints_provider_does.t .......... ok
t/hints_provider_easy_does_it.t .. ok
t/hints_provider_isa.t ........... ok
t/import-into.t .................. skipped: Test needs Import::Into >= 1.002004
t/internal-backcompat.t .......... ok
t/internal.t ..................... ok
t/kill.t ......................... skipped: Can unexpectedly signal process 1. Won't run as root.
t/kwalitee.t ..................... skipped: Author test. Set $ENV{RELEASE_TESTING} to true to run.
t/lethal.t ....................... ok
t/lex58.t ........................ ok
t/mkdir.t ........................ ok
t/no_carp.t ...................... ok
t/open.t ......................... ok
t/pod-coverage.t ................. skipped: Author test. Set $ENV{AUTHOR_TESTING} to true to run.
t/pod.t .......................... skipped: Author test. Set $ENV{AUTHOR_TESTING} to true to run.
t/read.t ......................... ok
t/recv.t ......................... ok
t/release-pod-coverage.t ......... skipped: these tests are for release candidate testing
t/release-pod-syntax.t ........... skipped: these tests are for release candidate testing
t/repeat.t ....................... ok
t/rt-74246.t ..................... ok
t/scope_leak.t ................... ok
t/skip.t ......................... ok
t/socket.t ....................... skipped: Author test. Set $ENV{AUTHOR_TESTING} to true to run.
t/string-eval-basic.t ............ ok
t/string-eval-leak.t ............. ok
t/sysopen.t ...................... ok
t/system.t ....................... ok
t/truncate.t ..................... ok
t/unlink.t ....................... ok
t/user-context.t ................. ok
t/usersub.t ...................... ok
t/utf8_open.t .................... ok
t/utime.t ........................ ok
t/version.t ...................... skipped: Release test. Set $ENV{RELEASE_TESTING} to true to run.
t/version_tag.t .................. ok
All tests successful.
Files=66, Tests=505, 6 wallclock secs ( 0.22 usr 0.07 sys + 4.39 cusr 0.64 csys = 5.32 CPU)
Result: PASS
PJF/autodie-2.29.tar.gz
/usr/bin/make test -- OK
Running make install
Manifying blib/man3/autodie::Util.3pm
Manifying blib/man3/autodie::hints.3pm
Manifying blib/man3/Fatal.3pm
Manifying blib/man3/autodie::Scope::Guard.3pm
Manifying blib/man3/autodie::exception.3pm
Manifying blib/man3/autodie::Scope::GuardStack.3pm
Manifying blib/man3/autodie::skip.3pm
Manifying blib/man3/autodie::exception::system.3pm
Manifying blib/man3/autodie.3pm
Installing /usr/local/share/perl5/Fatal.pm
Installing /usr/local/share/perl5/autodie.pm
Installing /usr/local/share/perl5/autodie/Util.pm
Installing /usr/local/share/perl5/autodie/hints.pm
Installing /usr/local/share/perl5/autodie/exception.pm
Installing /usr/local/share/perl5/autodie/skip.pm
Installing /usr/local/share/perl5/autodie/Scope/Guard.pm
Installing /usr/local/share/perl5/autodie/Scope/GuardStack.pm
Installing /usr/local/share/perl5/autodie/exception/system.pm
Installing /usr/local/share/man/man3/autodie::Util.3pm
Installing /usr/local/share/man/man3/autodie::hints.3pm
Installing /usr/local/share/man/man3/Fatal.3pm
Installing /usr/local/share/man/man3/autodie::Scope::Guard.3pm
Installing /usr/local/share/man/man3/autodie::exception.3pm
Installing /usr/local/share/man/man3/autodie::Scope::GuardStack.3pm
Installing /usr/local/share/man/man3/autodie::skip.3pm
Installing /usr/local/share/man/man3/autodie::exception::system.3pm
Installing /usr/local/share/man/man3/autodie.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
PJF/autodie-2.29.tar.gz
/usr/bin/make install -- OK
居然成功了...哈哈~~
緊接著再次安裝 XML::SAX:Expat吧!!

[root@ha1 ~]# cpan XML::SAX:Expat
CPAN: Storable loaded ok (v2.45)
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 08 Aug 2019 19:56:00 GMT
Running install for module 'XML::SAX::Expat'
Running make for B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz
CPAN: Digest::SHA loaded ok (v5.85)
CPAN: Compress::Zlib loaded ok (v2.061)
Checksum for /root/.cpan/sources/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz ok
CPAN: File::Temp loaded ok (v0.2301)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20190720)
CPAN.pm: Building B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite XML::SAX 0.03 not found.
Writing Makefile for XML::SAX::Expat
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
---- BJOERN/XML-SAX-Expat-0.51.tar.gz ----
XML::SAX [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'XML::SAX'
Running make for G/GR/GRANTM/XML-SAX-1.02.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GR/GRANTM/XML-SAX-1.02.tar.gz ok
CPAN.pm: Building G/GR/GRANTM/XML-SAX-1.02.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for XML::SAX
Writing MYMETA.yml and MYMETA.json
cp lib/XML/SAX/PurePerl/EncodingDetect.pm blib/lib/XML/SAX/PurePerl/EncodingDetect.pm
cp lib/XML/SAX/PurePerl/Reader/UnicodeExt.pm blib/lib/XML/SAX/PurePerl/Reader/UnicodeExt.pm
cp lib/XML/SAX/PurePerl/Reader/Stream.pm blib/lib/XML/SAX/PurePerl/Reader/Stream.pm
cp lib/XML/SAX.pm blib/lib/XML/SAX.pm
cp lib/XML/SAX/PurePerl/DTDDecls.pm blib/lib/XML/SAX/PurePerl/DTDDecls.pm
cp lib/XML/SAX/PurePerl/Reader/NoUnicodeExt.pm blib/lib/XML/SAX/PurePerl/Reader/NoUnicodeExt.pm
cp lib/XML/SAX/DocumentLocator.pm blib/lib/XML/SAX/DocumentLocator.pm
cp lib/XML/SAX/PurePerl/Reader/String.pm blib/lib/XML/SAX/PurePerl/Reader/String.pm
cp lib/XML/SAX/PurePerl/UnicodeExt.pm blib/lib/XML/SAX/PurePerl/UnicodeExt.pm
cp lib/XML/SAX/PurePerl/Exception.pm blib/lib/XML/SAX/PurePerl/Exception.pm
cp lib/XML/SAX/PurePerl/DocType.pm blib/lib/XML/SAX/PurePerl/DocType.pm
cp lib/XML/SAX/PurePerl/DebugHandler.pm blib/lib/XML/SAX/PurePerl/DebugHandler.pm
cp lib/XML/SAX/Intro.pod blib/lib/XML/SAX/Intro.pod
cp lib/XML/SAX/ParserFactory.pm blib/lib/XML/SAX/ParserFactory.pm
cp lib/XML/SAX/PurePerl/Reader/URI.pm blib/lib/XML/SAX/PurePerl/Reader/URI.pm
cp lib/XML/SAX/PurePerl/XMLDecl.pm blib/lib/XML/SAX/PurePerl/XMLDecl.pm
cp lib/XML/SAX/PurePerl/Reader.pm blib/lib/XML/SAX/PurePerl/Reader.pm
cp lib/XML/SAX/PurePerl.pm blib/lib/XML/SAX/PurePerl.pm
cp lib/XML/SAX/PurePerl/NoUnicodeExt.pm blib/lib/XML/SAX/PurePerl/NoUnicodeExt.pm
cp lib/XML/SAX/PurePerl/Productions.pm blib/lib/XML/SAX/PurePerl/Productions.pm
Manifying blib/man3/XML::SAX::ParserFactory.3pm
Manifying blib/man3/XML::SAX.3pm
Manifying blib/man3/XML::SAX::Intro.3pm
Manifying blib/man3/XML::SAX::PurePerl::Reader.3pm
Manifying blib/man3/XML::SAX::PurePerl.3pm
Manifying blib/man3/XML::SAX::DocumentLocator.3pm
GRANTM/XML-SAX-1.02.tar.gz
/usr/bin/make -- OK
CPAN: YAML loaded ok (v0.84)
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00basic.t ....... ok
t/01known.t ....... ok
t/10xmldecl1.t .... ok
t/11xmldecl2.t .... ok
t/12miscstart.t ... ok
t/13int_ent.t ..... ok
t/14encoding.t .... ok
t/15element.t ..... ok
t/16large.t ....... 1/3 parsed 80085 bytes in 0 seconds
t/16large.t ....... ok
t/19pi.t .......... ok
t/20factory.t ..... ok
t/21saxini.t ...... ok
t/30parse_file.t .. ok
t/40cdata.t ....... ok
t/42entities.t .... ok
t/99cleanup.t ..... ok
All tests successful.
Files=16, Tests=113, 2 wallclock secs ( 0.06 usr 0.01 sys + 1.09 cusr 0.14 csys = 1.30 CPU)
Result: PASS
GRANTM/XML-SAX-1.02.tar.gz
/usr/bin/make test -- OK
Running make install
Manifying blib/man3/XML::SAX::ParserFactory.3pm
Manifying blib/man3/XML::SAX.3pm
Manifying blib/man3/XML::SAX::Intro.3pm
Manifying blib/man3/XML::SAX::PurePerl::Reader.3pm
Manifying blib/man3/XML::SAX::PurePerl.3pm
Manifying blib/man3/XML::SAX::DocumentLocator.3pm
Installing /usr/local/share/perl5/XML/SAX.pm
Installing /usr/local/share/perl5/XML/SAX/DocumentLocator.pm
Installing /usr/local/share/perl5/XML/SAX/Intro.pod
Installing /usr/local/share/perl5/XML/SAX/ParserFactory.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/EncodingDetect.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/DTDDecls.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/UnicodeExt.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Exception.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/DocType.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/DebugHandler.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/XMLDecl.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Reader.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/NoUnicodeExt.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Productions.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Reader/UnicodeExt.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Reader/Stream.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Reader/NoUnicodeExt.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Reader/String.pm
Installing /usr/local/share/perl5/XML/SAX/PurePerl/Reader/URI.pm
Installing /usr/local/share/man/man3/XML::SAX::ParserFactory.3pm
Installing /usr/local/share/man/man3/XML::SAX.3pm
Installing /usr/local/share/man/man3/XML::SAX::Intro.3pm
Installing /usr/local/share/man/man3/XML::SAX::PurePerl::Reader.3pm
Installing /usr/local/share/man/man3/XML::SAX::PurePerl.3pm
Installing /usr/local/share/man/man3/XML::SAX::DocumentLocator.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
could not find ParserDetails.ini in /root/.cpan/build/XML-SAX-1.02-K1WT1Y/blib/lib/XML/SAX
GRANTM/XML-SAX-1.02.tar.gz
/usr/bin/make install -- OK
Running make for B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz
Has already been unwrapped into directory /root/.cpan/build/XML-SAX-Expat-0.51-O0JGtt
CPAN.pm: Building B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz
cp Expat.pm blib/lib/XML/SAX/Expat.pm
Manifying blib/man3/XML::SAX::Expat.3pm
BJOERN/XML-SAX-Expat-0.51.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00basic.t ... ok
t/98podsyn.t .. ok
t/99podcov.t .. ok
All tests successful.
Files=3, Tests=3, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.20 cusr 0.03 csys = 0.25 CPU)
Result: PASS
BJOERN/XML-SAX-Expat-0.51.tar.gz
/usr/bin/make test -- OK
Running make install
Installing /usr/local/share/perl5/XML/SAX/Expat.pm
Installing /usr/local/share/man/man3/XML::SAX::Expat.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
could not find ParserDetails.ini in /usr/local/share/perl5/XML/SAX
BJOERN/XML-SAX-Expat-0.51.tar.gz
/usr/bin/make install -- OK

居然又成功了...挖哈...挖哈~~LOL

來吧~~咱們來試著安裝XML::Simple吧!!
[root@ha1 ~]# cpan XML::Simple
CPAN: Storable loaded ok (v2.45)
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 08 Aug 2019 19:56:00 GMT
Running install for module 'XML::Simple'
Running make for G/GR/GRANTM/XML-Simple-2.25.tar.gz
CPAN: Digest::SHA loaded ok (v5.85)
CPAN: Compress::Zlib loaded ok (v2.061)
Checksum for /root/.cpan/sources/authors/id/G/GR/GRANTM/XML-Simple-2.25.tar.gz ok
CPAN: File::Temp loaded ok (v0.2301)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20190720)
CPAN.pm: Building G/GR/GRANTM/XML-Simple-2.25.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Simple
Writing MYMETA.yml and MYMETA.json
cp lib/XML/Simple/FAQ.pod blib/lib/XML/Simple/FAQ.pod
cp lib/XML/Simple.pm blib/lib/XML/Simple.pm
Manifying blib/man3/XML::Simple::FAQ.3pm
Manifying blib/man3/XML::Simple.3pm
GRANTM/XML-Simple-2.25.tar.gz
/usr/bin/make -- OK
CPAN: YAML loaded ok (v0.84)
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Package Version
# perl 5.16.3
# XML::Simple 2.25
# Storable 2.45
# XML::Parser 2.41
# XML::SAX 1.02
# XML::NamespaceSupport 1.12
# XML::SAX::Expat 0.51 (default parser)
t/0_Config.t ............. ok
t/1_XMLin.t .............. ok
t/2_XMLout.t ............. ok
t/3_Storable.t ........... ok
t/4_MemShare.t ........... ok
t/5_MemCopy.t ............ ok
t/6_ObjIntf.t ............ ok
t/7_SaxStuff.t ........... ok
t/8_Namespaces.t ......... ok
t/9_Strict.t ............. ok
t/A_XMLParser.t .......... ok
t/author-pod-syntax.t .... skipped: these tests are for testing by the author
t/B_Hooks.t .............. ok
t/C_External_Entities.t .. ok
All tests successful.
Files=14, Tests=503, 12 wallclock secs ( 0.11 usr 0.02 sys + 1.78 cusr 0.21 csys = 2.12 CPU)
Result: PASS
GRANTM/XML-Simple-2.25.tar.gz
/usr/bin/make test -- OK
Running make install
Manifying blib/man3/XML::Simple::FAQ.3pm
Manifying blib/man3/XML::Simple.3pm
Installing /usr/local/share/perl5/XML/Simple.pm
Installing /usr/local/share/perl5/XML/Simple/FAQ.pod
Installing /usr/local/share/man/man3/XML::Simple::FAQ.3pm
Installing /usr/local/share/man/man3/XML::Simple.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
GRANTM/XML-Simple-2.25.tar.gz
/usr/bin/make install -- OK
嘿嘿~~~來吧!!見真章了
cpan Paws::DynamoDB
PAWS

整個安裝過程就是一個戲劇化
也太好笑了吧!!