LoginSignup
2
4

More than 5 years have passed since last update.

[Perl,CPAN]CentOS6.6(x64)にLWPをインストールする手順

Posted at

●環境
ホスト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。

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4