[패키지] perl cpan module 설치하기

perl 의 다양한 모듈을 쉽게 찾아 설치하는 방법 두 가지

1. http://search.cpan.org  의 검색창에서 직접 찾는다.

2. CPAN 이용방법
         
# perl -MCPAN -e shell

            처음 이용할 경우 다음과 같은 기본 설정 단계가 나온다.
            —————————————————————————
            /usr/lib/perl5/5.8.0/CPAN/Config.pm initialized.
            
            
            CPAN is the world-wide archive of perl resources. It consists of about
            100 sites that all replicate the same contents all around the globe.
            Many countries have at least one CPAN site already. The resources
            found on CPAN are easily accessible with the CPAN.pm module. If you
            want to use CPAN.pm, you have to configure it properly.
            
            If you do not want to enter a dialog now, you can answer ‘no’ to this
            question and I’ll try to autoconfigure. (Note: you can revisit this
            dialog anytime later by typing ‘o conf init’ at the cpan prompt.)
            
            Are you ready for manual configuration? [yes]  -> yes
            
            The following questions are intended to help you with the
            configuration. The CPAN module needs a directory of its own to cache
            important index files and maybe keep a temporary mirror of CPAN files.
            This may be a site-wide directory or a personal directory.
            
            
            
            First of all, I’d like to create this directory. Where?
            
            CPAN build and cache directory? [/root/.cpan]
            .
            .
            .
                기본 내용으로 설정한다.
                .
                cpan shell — CPAN exploration and modules installation (v1.61)
                ReadLine support available (try ‘install Bundle::CPAN’)
        
                cpan>
            —————————————————————————          
           
            cpan> install Time::Period
            cpan> install Time::HiRes
            cpan> install Convert::BER
            cpan> install Mon::Client
            cpan> install Mon::Protocol
            cpan> install Mon::SNMP

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

3 Responses

  1. 2024년 9월 12일

    … [Trackback]

    […] Read More on to that Topic: nblog.syszone.co.kr/archives/3223 […]

  2. 2024년 10월 25일

    … [Trackback]

    […] Read More to that Topic: nblog.syszone.co.kr/archives/3223 […]

  3. 2024년 10월 27일

    … [Trackback]

    […] Info to that Topic: nblog.syszone.co.kr/archives/3223 […]

페이스북/트위트/구글 계정으로 댓글 가능합니다.