2010-08-03 Tue

[別の年の同じ日: 2002 2003 2004 2005 2006 2007 2008 2009 2014

perlbrew で perl-5.12.1 をインストールしてみた はてぶ

perlbrew のインストールと設定

$ curl -L http://xrl.us/perlbrew > perlbrew
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 33325  100 33325    0     0  19543      0  0:00:01  0:00:01 --:--:-- 70570
$ perl perlbrew install
The perlbrew is installed as:

/home/fumi/perl5/perlbrew/bin/perlbrew

You may trash the downloaded /home/fumi/perlbrew from now on.

Next, if this is the first time you've run perlbrew installation, run:

/home/fumi/perl5/perlbrew/bin/perlbrew init

And follow the instruction on screen.
$ rm perlbrew
$ /home/fumi/perl5/perlbrew/bin/perlbrew init
Perlbrew environment initiated, required directories are created under

/home/fumi/perl5/perlbrew

Well-done! Congratulations! Please add the following line to the end
of your ~/.bashrc

source /home/fumi/perl5/perlbrew/etc/bashrc

After that, exit this shell, start a new one, and install some fresh
perls:

perlbrew install perl-5.12.1
perlbrew install perl-5.10.1

For further instructions, simply run:

perlbrew

The default help messages will popup and tell you what to do!

Enjoy perlbrew at $HOME!!


~/.bashrc に

source /home/fumi/perl5/perlbrew/etc/bashrc


を追加しろと言われるけど,zsh を使っているので ~/.zshrc に追加.

perl-5.12.1 のインストール

$ perlbrew install perl-5.12.1
Attempting to load conf from /home/fumi/perl5/perlbrew/Conf.pm
Fetching perl-5.12.1 as /home/fumi/perl5/perlbrew/dists/perl-5.12.1.tar.gz
Installing perl-5.12.1 into /home/fumi/perl5/perlbrew/perls/perl-5.12.1
This could take a while. You can run the following command on another shell to track the status:

tail -f /home/fumi/perl5/perlbrew/build.log

(cd /home/fumi/perl5/perlbrew/build; tar xzf /home/fumi/perl5/perlbrew/dists/perl-5.12.1.tar.gz;cd /home/fumi/perl5/perlbrew/build/perl-5.12.1;rm -f config.sh Policy.sh;sh Configure -de -Dprefix=/home/fumi/perl5/perlbrew/perls/perl-5.12.1;make;make test && make install) >> '/home/fumi/perl5/perlbrew/build.log' 2>&1
Installed perl-5.12.1 as perl-5.12.1 successfully. Run the following command to switch to it.


perl-5.12.1 に切り替え

$ perlbrew switch perl-5.12.1
$ perl -v

This is perl 5, version 12, subversion 1 (v5.12.1) built for x86_64-linux

Copyright 1987-2010, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.