EasierUVM安装问题

perl包安装

EasierUVM需要安装File::Copy::Recursive,File::stat, and Time::Piece modules.这几个PERL 包,官方文档给的安装命令是

1
2
3
perl -MCPAN -e 'install File::Copy::Recursive'
perl -MCPAN -e 'install File::stat'
perl -MCPAN -e 'install Time::Piece'

如果没有CPAN工具,要先装CPAN。

很不幸,安装出错,说是YAML没有安装,

1
2
3
4
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running install for module 'Module::Build'
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
Running make for L/LE/LEONT/Module-Build-0.4229.tar.gz

然后我再命令行中安装YMAL

1
yum install -y *YAML*

又说没法下载包

1
2
3
4
Error Downloading Packages:
libyaml-0.1.3-4.el6_6.x86_64: failure: libyaml-0.1.3-4.el6_6.x86_64.rpm from RPM_Packx64: [Errno 256] No more mirrors to try.
perl-YAML-Syck-1.07-4.el6.x86_64: failure: perl-YAML-Syck-1.07-4.el6.x86_64.rpm from RPM_Packx64: [Errno 256] No more mirrors to try.
perl-YAML-Tiny-1.40-2.el6.noarch: failure: perl-YAML-Tiny-1.40-2.el6.noarch.rpm from RPM_Packx64: [Errno 256] No more mirrors to try.

我发现其实系统上装了一个YAML了,然后我把这个YAML卸载了,

1
yum erase *YMAL*

然后我打开CPAN,在命令行输入cpan,然后安装YMAL,成功了

1
2
# cpan
cpan> install YMAL

安装YMAL中间有好多warning,不管,一路确定,执行完没有错误,然后再执行EasierUVM给的安装perl包的命令,

1
2
perl -MCPAN -e 'install File::Copy::Recursive'
perl -MCPAN -e 'install File::stat'

这样perl包就安装成功了


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!