ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Mac 에서 Perl 설치
    기록./2015 2013. 7. 8. 16:17
    반응형


    * 윈도우에서는 다운받기 쉬운데 mac에서는 항상 까먹어버려서 ㅠ 적어본다.



    1. XCode의 Command line Tools 설치 (XCode-Preference-Downloads-Commandline Tools  install)




    2. Perlbrew설치 및 등록

    터미널 오픈

    >curl -kL http://install.perlbrew.pl | bash 


    홈디렉토리 .bash_profile에 다음라인 적고 저장 (bash_profile없으면 만들면되요)

    >source ~/perl5/perlbrew/etc/bashrc


    쉘 초기화

    >. ~/.bash_profile


    3. Perl설치 및 버전 적용(기본으로 설치 되어 있지만 원하는 버전 설치하세용)

    원하는 버전 설치

    >perlbrew install perl-(원하는버전)

    * perlbrew 옵션도 있으니 용도에 맞게~


    설치 버전 적용

    >perlbrew switch perl


    4. Perl 버전 확인하기

    >perl -v



    반응형

    댓글

Designed by Tistory.