Mac Book Airにperlbrewを入れる
こちらを参考に構築
http://aerial.st/archive/2011/04/26/install-perlbrew-and-cpanm/
事前準備
$ mkdir ~/bin $ cd ~/bin $ export PATH=$HOME/bin:$PATH
インストールする
$ curl -LO http://xrl.us/perlbrew $ chmod +x perlbrew $ mkdir ~/.perlbrew $ export PERLBREW_ROOT=~/.perlbrew perlbrew init $ vi ~/.zshrc $ source ~/.zshrc
ここまではそこそこ想定通り。
ためしに5.10を入れてみる。いまさら5.10かよとか思わないの。
(mizuki)$ perlbrew install perl-5.10.0 [~] Fetching perl-5.10.0 as /Users/mizuki/.perlbrew/dists/perl-5.10.0.tar.gz Installing /Users/mizuki/.perlbrew/build/perl-5.10.0 into ~/.perlbrew/perls/perl-5.10.0 This could take a while. You can run the following command on another shell to track the status: tail -f ~/.perlbrew/build.log Installing /Users/mizuki/.perlbrew/build/perl-5.10.0 failed. See /Users/mizuki/.perlbrew/build.log to see why. You might want to try upgrading patchperl before trying again: perlbrew install-patchperl If you want to force install the distribution, try: perlbrew --force install perl-5.10.0
こけたらしい。
(mizuki)$ cat .perlbrew/build.log sh: patchperl: command not found
patchperlが無いよと言われている。
ぐぐったらperlbrewでインストールすればよいらしい
(mizuki)$ perlbrew install-patchperl [~] patchperl is installed to /Users/mizuki/.perlbrew/bin/patchperl (mizuki)$ perlbrew install perl-5.10.0 [~] Installing /Users/mizuki/.perlbrew/build/perl-5.10.0 into ~/.perlbrew/perls/perl-5.10.0 This could take a while. You can run the following command on another shell to track the status: tail -f ~/.perlbrew/build.log Installing /Users/mizuki/.perlbrew/build/perl-5.10.0 failed. See /Users/mizuki/.perlbrew/build.log to see why. You might want to try upgrading patchperl before trying again: perlbrew install-patchperl If you want to force install the distribution, try: perlbrew --force install perl-5.10.0
おしきたーと思って再度トライしたらまた失敗。しかたないのでtailしてみたら、どうやらテストがこけている様子。
またあとでー