본문 바로가기
PERL

[ PERL ] Perl 소스 설치 (리눅스)

by 정윤재 2020. 4. 4.

1. https://www.perl.org/get.html 에서 소스를 다운로드 합니다.

 

Perl Download - www.perl.org

Perl runs on over 100 platforms! We recommend that you always run the latest stable version, currently 5.30.2. If you're running a version older than 5.8.3, you may find that the latest version of CPAN modules will not work.

www.perl.org

   (저는 perl-5.30.2.tar.gz 다운로드 받았습니다.)

 

Perl Download - www.perl.org

Perl runs on over 100 platforms! We recommend that you always run the latest stable version, currently 5.30.2. If you're running a version older than 5.8.3, you may find that the latest version of CPAN modules will not work.

www.perl.org

2. Tar 압축을 풉니다. 

   tar xvfz perl-5.30.2.tar.gz

   cd perl-5.30.2

 

3. 컴파일 합니다.

   ./Configure -des -Dprefix=/app/perl5.30.2

   make test

   make install

 

4. Perl path 를 잡아 줍니다.

   우선 which perl 을 해서 어디에 기본 설치 되어 있는지 확인 합니다.

  • 저의 경우 /bin 하위에 있었습니다.

   cd /bin

   mv perl perl_bak

   ln -s /app/perl5.30.2/bin/perl /bin/perl

 

5. 반영 된 버전을 확인 합니다.

  perl -v

 


댓글