Perl5.8.8 にアップグレード

| コメント(0) | トラックバック(0)
DarwinPorts

Emacs で PerlTidy を使おうと思って M-x perl-tidy-region ってコマンドを押したら Shell でエラーが出た。確か入れてあるはずなのにって思ったんだけど、インストールしてあるのは会社のマシンでした。っということで家のにも入れようと思ったんだけど、パッケージマネージャで入れた方が楽だなぁと思って Fink をインストール。

インストールしてから確認のため

perltidy -v

でちゃんと入ったか確認。するとなにやらエラーが出てて、1860行目でエラーですって。とりあえずEmacsから使えるかチェックしたら動きませんでした。ディレクトリを確認すると sw/ ってディレクトリが出来ていてその中にの底に perltidy はあったんだけど、ソースみてもわからん。と言うことでFink自体を削除。

仕方無いので前にインストールした DarwinPorts 経由で調べてみた。そしたら p5-perl-tidy ってそれだった。

気を取り直して DarwinPorts からインストールしてみたらなんかPerl5.8.8までインストールしだしましたよ。インストールに20分ぐらいかかったわけですが Perl5.8.8 と PerlTidy ゲットです。確認のためターミナルから

Ashizawa:~ Ashizawa$ perl -v

This is perl, v5.8.8 built for darwin-2level

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

Ashizawa:~ Ashizawa$ perltidy -v
This is perltidy, v20031021 

Copyright 2000-2003, Steve Hancock

Perltidy is free software and may be copied under the terms of the GNU
General Public License, which is included in the distribution files.

Complete documentation for perltidy can be found using 'man perltidy'
or on the internet at http://perltidy.sourceforge.net.

ん〜しっかりバージョンあがってる。ついでだからルートディレクトリからも調べてみたんだけど usr/bin/perl は 5.8.6 のままでした。どこにあるのか気になったんで探したらルートディレクトリに opt/ ってディレクトリがあってその中に入ってました。 .profile に PATH 指定されてるっぽいです。

しかしなんだかちゃんとした所に入ってないのは気持ち悪いですね。とりあえずはこのまま使うとして、暇があったら次はネイティブで cvs からアップしようとおもいます。パッケージマネージャーだと安定版しか出回らないので最新じゃなかったりするしね。