我在Centos 7上安装
测试脚本 use Test::Nginx::Socket::Lua;
yum install -y cpan
cpan Test::Nginx
提示我找不到 Test::Nginx::Socket::Lua 这个, 我又装了test-nginx
git clone https://github.com/agentzh/test-nginx.git
perl Makefile.PL
make
make install
又提示我找不到 Test::Base, 又装了 Test::Base
cpan Test::Base
又提示我找不到 Can't locate Digest/MD5.pm, 接着装
yum install -y perl-Digest-MD5
又提示我找不到Can't locate HTTP/Response.pm , 接着装
yum install -y perl-HTTP-*
最后成功了, 但是这样装对吗, 怎么会这么麻烦?