Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
perl-development-environment
Search
Shoichi Kaji
February 27, 2014
0
89
perl-development-environment
Shoichi Kaji
February 27, 2014
Tweet
Share
More Decks by Shoichi Kaji
See All by Shoichi Kaji
宿泊予約サイトにおける検索と料金計算の両立
skaji
2
2.5k
昔のGo, 今のGo ~比較, ソート編~
skaji
0
170
Perl Quiz
skaji
0
130
cpm at PerlCon 2019
skaji
0
110
Perl5 Package Manager
skaji
0
660
Internal of cpm
skaji
0
570
How to execute external programs in Perl
skaji
3
570
Writing Perl with w0rp/ale
skaji
0
2.2k
nginx unit
skaji
0
44
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
88
5.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Code Reviewing Like a Champion
maltzj
520
39k
Building an army of robots
kneath
302
43k
A designer walks into a library…
pauljervisheath
204
24k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
Building Your Own Lightsaber
phodgson
103
6.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
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