在配置相关的mmm架构中,有些包需要安装,比如使用perl编译的相关包数据,在编译的时候有时候会提示以下错误信息如:
Starting MMM Agent daemon... Can't locate Log/Log4perl.pm in @INC。。。。。。。。。。。。。。。。。
这里我们可以使用perl -MCPAN -e shell进行编译,然后再内部进行编译相关的包会更加的简洁使用,而且方便,如下我编译的包;
cpan> install HTML::TokeParser::Simple
Running install for module HTML::TokeParser::Simple
Running make for O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz
Fetching with LWP:
http://mirrors.sohu.com/CPAN/authors/id/O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz
Fetching with LWP:
http://mirrors.sohu.com/CPAN/authors/id/O/OV/OVID/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz ok
HTML-TokeParser-Simple-3.15/
HTML-TokeParser-Simple-3.15/Build.PL
HTML-TokeParser-Simple-3.15/Changes
HTML-TokeParser-Simple-3.15/lib/
HTML-TokeParser-Simple-3.15/lib/HTML/
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/Comment.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/Declaration.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/ProcessInstruction.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/Tag/
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/Tag/End.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/Tag/Start.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/Tag.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token/Text.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple/Token.pm
HTML-TokeParser-Simple-3.15/lib/HTML/TokeParser/Simple.pm
HTML-TokeParser-Simple-3.15/Makefile.PL
HTML-TokeParser-Simple-3.15/MANIFEST
HTML-TokeParser-Simple-3.15/META.yml
HTML-TokeParser-Simple-3.15/README
HTML-TokeParser-Simple-3.15/t/
HTML-TokeParser-Simple-3.15/t/01get_tag.t
HTML-TokeParser-Simple-3.15/t/01get_token.t
HTML-TokeParser-Simple-3.15/t/02munge_html.t
HTML-TokeParser-Simple-3.15/t/03constructor.t
HTML-TokeParser-Simple-3.15/t/04internals.t
HTML-TokeParser-Simple-3.15/t/data/
HTML-TokeParser-Simple-3.15/t/data/test.html
HTML-TokeParser-Simple-3.15/t/pod-coverage.t
HTML-TokeParser-Simple-3.15/t/pod.t
CPAN.pm: Going to build O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite Sub::Override 0 not found.
Writing Makefile for HTML::TokeParser::Simple
---- Unsatisfied dependencies detected during [O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz] -----
Sub::Override
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module Sub::Override
Running make for O/OV/OVID/Sub-Ov