Mac OSXのperlについて

perlのインストール先とか.

Alice:~ lapis$ which perl
/usr/bin/perl

これに関してはd:id:naoya:20051104のOSX環境構築中でCPAN絡みで問題があったりとか書いてあるのだけど,自分で体験した方がよさそうですね.ひとまずこのままでいきましょう.とはいえいちいちスクリプトを書き換えるのも面倒なので,シンボリックリンクでも作っておけば問題ないかな.通常/usr/local/binはないのでsudoで作成.パスも通しておく.

Alice:~ lapis$ sudo mkdir /usr/local/bin
Alice:~ lapis$ sudo ln -s /usr/bin/perl /usr/local/bin/perl

その他問題があればその都度設定していきましょう.

バージョンとか.

Alice:~ lapis$ perl -v

This is perl, v5.8.6 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2004, 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.