wget http://xrl.us/cpanm --no-check-certificate -O cpanm
chmod u+x cpanm
设置环境变量:
export PERL_CPANM_OPT="--prompt -v -l /home/mengalong/local --mirror http://mirrors.sohu.com/CPAN --mirror-only"
安装模块:
./cpanm FreezeThaw
搞定,模块就安装到了 /home/mengalong/local 下
更多查看:./cpanm --help
enjoy it