2012-09-28 Fri

perl が読み込むモジュールを確認する はてぶ

munin の apache 系 plugin がビルド環境のサーバでは動いて,

truss /usr/share/munin/plugins/apache_volume 2>&1 | \
egrep 'open.*\("/usr/perl5/' |cut -d " " -f 1 | \
sed -e 's/open.*(//' | sort -u




"open.*" としているのは,"open" と "open64" があるため.

apache 系 plugin に足りなかったのは,

2010-08-03 Tue

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:


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


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

perlbrew install perl-5.12.1
perlbrew install perl-5.10.1

For further instructions, simply run:


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.

2006-04-11 Tue

Perlの生みの親ラリー・ウォール氏が語る、Perlの生い立ちと今後 はてぶ


2006-04-02 Sun

ぱるま - Perlish Magazine はてぶ


2006-03-10 Fri

コマンドラインからトラックバックPINGを送るツール はてぶ


- weblogUpdates.ping で更新を通知するRubyスクリプト

ChangeLog 最新ページ