OSXã§local::lib cpanminus ã使ã£ã¦ç°å¢æ§ç¯ãã話
Snow Leopard ã«ããããããã大å¤ã ã£ãã¡ã¢
64bitåã®å½±é¿ã§portã¯å ¨é¨å ¥ãç´ãã ããcpan ããã±ã¼ã¸ãã»ã¨ãã©å ¥ããªããã®ããã§ããä»¥ä¸ MacPorts ãã¤ã³ã¹ãã¼ã«ããã¦ãããã¨ãåæã§ããLeopardããSnow Leopardã«ã¢ããã°ã¬ã¼ããã人ã¯ãMacPortsãåã¤ã³ã¹ãã¼ã«ãå¿ è¦ã§ããï¼
Perl ã¯å ¨é¨å ¥ãç´ã
perl 5.8 ç³»ãã¯ã¦ãªã§ã¯ä½¿ã£ã¦ããã®ã§ perl5 ãã¤ã³ã¹ãã¼ã«
sudo port instal perl5
cpan ãã»ã¨ãã©å ¨æ» ãªã®ã§è«¦ãã¦å ¨é¨ãããªãã
rm -rf ~/.cpan
ãã£ãããªã®ã§ local::lib 㨠cpanm ã§ç°å¢æ§ç¯
local-lib ã®ãã¼ã¸ã§ã³ã¯ææ°ã®ã調ã¹ã¦ download ãã¦ãã ãããã
wget http://search.cpan.org/CPAN/authors/id/M/MS/MSTROUT/local-lib-1.006000.tar.gz tar vzxf local-lib-1.006000.tar.gz cd local-lib-1.006000 perl Makefile.PL --bootstrap make test && make install
echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.zshrc
ãã㧠local::lib ã®æºåã¯å®äºãç¶ãã¦cpanm
git clone http://github.com/miyagawa/cpanminus.git cd cpanminus perl Makefile.PL make insetall
ãã㧠cpanm ã³ãã³ãã使ããããã«ã
cpanm PACKAGE
ã§ã¤ã³ã¹ãã¼ã«ããã¨ã$HOME/perl 以ä¸ã«ã¤ã³ã¹ãã¼ã«ãããããã«ãªãã¾ãã
ãªã«ãã¦ã¬ã·ã¤ã®ãã¨ããã¨ãport ã§å ¥ãperlã¢ã¸ã¥ã¼ã«ãªã©ã¨å®å ¨ã«åé¢ã§ããã$HOME/perl 以ä¸ã ãã«ããã±ã¼ã¸ãæºã¾ã£ã¦ããã®ã§ãææªããã purge ããã°å ¨é¨å ã«æ»ããcpanm 㯠cpan ã«æ¯ã¹ãã¨ããªãéãã
ãªã©ãªã©ããããããããã¨ãæãã¾ãã