1. How to Use CPAN, Actually #
2. 설치된 모듈 확인 #
현재 설치된 모듈들의 목록을 얻으려면 ExtUtils::Installed 모듈을 이용하여 다음과 같이 명령을 내린다.
perl -MExtUtils::Installed -le 'print for ExtUtils::Installed->new->modules'
3. 기본적인 모듈 설치 #
sudo perl -MCPAN -e shell
YAML
cpan> install YAML
Bundle::CPAN
cpan> install Bundle::CPAN
cpan> reload cpan
cpan> exit
How to install a specific version of a Perl module with CPAN?
install {저자}/{모듈명}-{version}.tar.gz
예)
install YANICK/Parallel-ForkManager-1.18.tar.gz
4.1. 모듈 설치 시 dmake.exe test not ok #
- 해결 case1: Bundle::CPAN을 업데이트 한다.
cpan Bundle::CPAN
- 해결 case2: Test::More를 업데이트 한다.
cpan Test::More
- 해결 case3: perl 버전을 upgrade 한다.