$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
perl-development-environment
Search
Shoichi Kaji
February 27, 2014
0
95
perl-development-environment
Shoichi Kaji
February 27, 2014
Tweet
Share
More Decks by Shoichi Kaji
See All by Shoichi Kaji
Parallel::Pipesの紹介
skaji
2
1k
宿泊予約サイトにおける検索と料金計算の両立
skaji
2
4k
昔のGo, 今のGo ~比較, ソート編~
skaji
0
260
Perl Quiz
skaji
0
160
cpm at PerlCon 2019
skaji
0
140
Perl5 Package Manager
skaji
0
750
Internal of cpm
skaji
0
640
How to execute external programs in Perl
skaji
3
700
Writing Perl with w0rp/ale
skaji
0
2.3k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Rails Girls Zürich Keynote
gr2m
95
14k
A Tale of Four Properties
chriscoyier
162
23k
Writing Fast Ruby
sferik
630
62k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
How STYLIGHT went responsive
nonsquared
100
6k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
GraphQLとの向き合い方2022年版
quramy
50
14k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
How to train your dragon (web standard)
notwaldorf
97
6.4k
Transcript
ָ͘͠ͳΔ 1FSM։ൃڥ 4IPJDIJ,BKJ
"CPVUNF w /BNF4IPJDIJ,BKJ w JETLBKJTIPJDIJLBKJLT
1FSMָ͕͘͠ͳΔʹʁ w ࣗ༝ʹ1FSMΛ͑Δ w TVEPͳΜͯඞཁͳͯ͘ w ͖ͳͱ͜ΖʹϞδϡʔϧΛΠϯετʔϧͰ͖ ͯ w ͍Βͳ͘ͳͬͨΒͬ͞ͱফͤΔ
"HFOEB w QMFOW w DQBON w DQBONM - w DQBOpMF
QMFOW
QMFOW Yet another *env! ! > git clone git://github.com/tokuhirom/plenv.git ~/.plenv
> $EDITOR .bashrc > git clone git://github.com/tokuhirom/Perl- Build.git ~/.plenv/plugins/perl-build > plenv install 5.18.2 > plenv global 5.18.2 > perl -E ‘say $^V’ v5.18.2
DQBON JOTUBMMNPEVMFTGSPN $1"/
DQBON > curl -L http://cpanmin.us | \ perl - App::cpanminus
! > cpanm Mojolicious > cpanm git://github.com/plack/Plack.git > cpanm ——dev Carton > cpanm ——pureperl Mouse
DQBONM - ͖ͳσΟϨΫτϦʹΠϯετʔϧ͍ͨ͠ ! > cpanm -l ext LWP::UserAgent (ext/lib/perl5
ҎԼʹΠϯετʔϧ) > cpanm -L ext LWP::UserAgent (-lͱಉ༷͕ͩίΞϞδϡʔϧҎ֎࠶Πϯετʔϧ)
)PXUPVTFFYUEJS > cat your-script.pl use FindBin qw($Bin); use lib “$Bin/ext/lib/perl5”;
use LWP::UserAgent; ! > export PERL5LIB=`pwd`/ext/lib/perl5
DQBOpMF ϞδϡʔϧͷґଘΛ͍͍ײ͡ʹॻ͍͓͖͍ͯͨ -> cpanfile! ! > cat cpanfile requires “Amon2”;
requires “Starman”, “== 0.4006”; ! > cpanm ——installdeps . > cpanm ——installdeps -Lext .
·ͱΊ w QMFOWͰTVEP͕ඞཁͳ͍QFSMΛೖΕͯ w DQBONͰϞδϡʔϧΛΠϯετʔϧͯ͠ w DQBONM -Ͱ͖ͳσΟϨΫτϦʹϞδϡʔϧ ΛΠϯετʔϧͯ͠ w
DQBOpMFͰ͍͍ײ͡ʹϞδϡʔϧͷґଘΛॻ͘ w 1FSMָ͕͘͠ͳΔʂ
5IBOLZPV