perl 安装Rex

来源:互联网 发布:视频无损分割软件 编辑:程序博客网 时间:2024/05/17 02:54
通过SSH 协议推送到被管理端执行,执行完之后自动删除:(R)?ex 部署&配置管理:自动化一切,随时放松:在你的运行环境中无缝集成容易使用和extend容易学习,它只是一个简单的perlGet Rex:$ curl -L https://get.rexify.org | perl - --sudo -n Rexnode2:/root#cpanm XML::Simple--> Working on XML::Simpleyum install rexcpanm Rex安装rex root@StorageServer1 ~]# cpanm Rex--> Working on RexFetching http://www.cpan.org/authors/id/F/FE/FERKI/Rex-1.3.3.tar.gz ... OK==> Found dependencies: ExtUtils::MakeMaker安装过程中它自己会解决模块相关的依赖关系,可能会有一些底层的库需要手动去安装,比如我在安装过程中就失败了! Installing the dependencies failed: Module 'XML::LibXML' is not installed, Module 'XML::Simple' is not installed! Bailing out the installation for Rex-1.3.3.提示有个XML::LibXML相关的模块安装不成功,这个和它依赖的相关的底层xml库有关系,所以我将libxml相关的底层库都安装一下就行了。[root@StorageServer1 ~]# yum install libxml*然后再安装rexBuilding and testing XML-Parser-2.44 ... FAIL! Installing XML::Parser failed. See /root/.cpanm/work/1493002034.18958/build.log for details. Retry with --force to force install it.! Installing the dependencies failed: Module 'XML::Parser' is not installed! Bailing out the installation for XML-SAX-Expat-0.51.! Installing the dependencies failed: Module 'XML::SAX::Expat' is not installed! Bailing out the installation for XML-Simple-2.24.! Installing the dependencies failed: Module 'XML::Simple' is not installed! Bailing out the installation for Rex-1.5.0.alias cpanm='cpanm  --mirror http://mirrors.163.com/cpan --mirror-only'yum install *xml*[root@node01 ~]# cpanm XML::Simple--> Working on XML::SimpleFetching http://mirrors.163.com/cpan/authors/id/G/GR/GRANTM/XML-Simple-2.24.tar.gz ... OKConfiguring XML-Simple-2.24 ... OK==> Found dependencies: XML::SAX::Expat--> Working on XML::SAX::ExpatFetching http://mirrors.163.com/cpan/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz ... OKConfiguring XML-SAX-Expat-0.51 ... OK==> Found dependencies: XML::Parser--> Working on XML::ParserFetching http://mirrors.163.com/cpan/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz ... OKConfiguring XML-Parser-2.44 ... OKBuilding and testing XML-Parser-2.44 ... FAIL! Installing XML::Parser failed. See /root/.cpanm/work/1493002278.19380/build.log for details. Retry with --force to force install it.! Installing the dependencies failed: Module 'XML::Parser' is not installed! Bailing out the installation for XML-SAX-Expat-0.51.! Installing the dependencies failed: Module 'XML::SAX::Expat' is not installed! Bailing out the installation for XML-Simple-2.24.[root@node01 ~]# yum install  *expat*[root@node01 ~]# cpanm XML::Simple--> Working on XML::SimpleFetching http://mirrors.163.com/cpan/authors/id/G/GR/GRANTM/XML-Simple-2.24.tar.gz ... OKConfiguring XML-Simple-2.24 ... OK==> Found dependencies: XML::SAX::Expat--> Working on XML::SAX::ExpatFetching http://mirrors.163.com/cpan/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.51.tar.gz ... OKConfiguring XML-SAX-Expat-0.51 ... OK==> Found dependencies: XML::Parser--> Working on XML::ParserFetching http://mirrors.163.com/cpan/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz ... OKConfiguring XML-Parser-2.44 ... OKBuilding and testing XML-Parser-2.44 ... OKSuccessfully installed XML-Parser-2.44Building and testing XML-SAX-Expat-0.51 ... OKSuccessfully installed XML-SAX-Expat-0.51Building and testing XML-Simple-2.24 ... OKSuccessfully installed XML-Simple-2.243 distributions installed[root@node01 ~]# cpanm Rex[root@node01 yum.repos.d]# rpm -qa | grep expatexpat-devel-2.0.1-13.el6_8.x86_64compat-expat1-1.95.8-8.el6.x86_64expat-2.0.1-13.el6_8.x86_64

0 0
原创粉丝点击