# wget http://www.cpan.org/src/5.0/perl-5.16.2.tar.gz
# tar zxvfp perl-5.16.2.tar.gz
# cd perl-5.16.2
# ./Configure -des -Dcc=gcc -Dprefix=/share/apps/perl-5.16.2_threads -Dusethreads && make && make install
# echo "use threads;" | /share/apps/perl-5.16.2_threads/bin/perl
아무런 메시지가 나오지 않으면 성공!!
※ 에러 시 아래와 같은 메시지가 나옴!!
This Perl not built to support threads
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.
------ perlbrew 사용
# curl -kL http://install.perlbrew.pl | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1022 100 1022 0 0 432 0 0:00:02 0:00:02 --:--:-- 0
## Download the latest perlbrew
## Installing perlbrew
perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew
perlbrew root (~/perl5/perlbrew) is initialized.
Append the following piece of code to the end of your ~/.bash_profile and start a
new shell, perlbrew should be up and fully functional from there:
source ~/perl5/perlbrew/etc/bashrc
Simply run `perlbrew` for usage details.
Happy brewing!
## Installing patchperl
## Done.
# source ~/perl5/perlbrew/etc/bashrc
# perlbrew install perl 5.16.1 -D usethreads
'Lang_Development > Perl' 카테고리의 다른 글
[Perl] Can’t locate CAPN.pm in @INC – Cannot find CPAN module (0) | 2013.08.12 |
---|---|
Mysql 데이터베이스 리스트 (0) | 2012.06.11 |
설치된 펄 모듈 리스트 (0) | 2012.06.07 |
[Perl] Perl 모듈 설치 (0) | 2012.06.06 |
BIOPerl 설치 (0) | 2012.06.06 |
최근댓글