●環境
ホストOS Windows7 64bit
ゲストOS CentOS 6.6 x64
ハイパバイザ VMware Player
●手順
root になる。
su
Perlが入っていることを確認する。
perl -v
→ This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
下記を実行する。
rpm -Uvh http://fr2.rpmfind.net/linux/dag/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
yum -y install libyaml-devel
yum -y install *YAML*
yum install cpan
yum -y install perl-libwww-perl
perl -MCPAN -e shell
cpan> o conf prerequisites_policy follow
cpan> o conf commit
cpan> upgrade
cpan> install YAML
cpan> install Bundle::LWP
cpan> install HTML::Tree
cpan> install HTML::Format
cpan> exit
perl -MLWP -le "print(LWP->VERSION)"
→ バージョンが表示されたらインストールOK。