perlbrew, cpanminus で perl 環境構築
ほぼ自分用のメモとしてまとめを書きます。
curl -LO http://xrl.us/perlbrew perl perlbrew install ~/perl5/perlbrew/bin/perlbrew init source ~/perl5/perlbrew/etc/bashrc perlbrew install perl-5.8.9 cd ~/perl5/perlbrew/dists/ tar jxvf perl-5.8.9.tar.bz2 vi perl-5.8.9/lib/locale.t 460行目 - if ($v >= 8 and $v < 10) { + if ($v >= 8 and $v <= 10) { tar jcvf perl-5.8.9.tar.bz2 perl-5.8.9 perlbrew install perl-5.8.9 perlbrew switch perl-5.8.9 curl -L http://cpanmin.us/ | perl - App::cpanminus cpanm Module::Install cpanm App::cpanoutdated cpan-outdated | cpanm cpanm App::pmuninstall cpanm http://nodeload.github.com/tokuhirom/task-belike-tokuhirom/tarball/master
これで一通り perl 環境は整った。hidek++
.bashrc にも perlbrew の bashrc を読み込むように追記。
if [ -f $HOME/perl5/perlbrew/etc/bashrc ]; then . $HOME/perl5/perlbrew/etc/bashrc fi