mac(leopard)でcpanを使ってモジュールをいれる時の備忘

Bundle::CPAN(LWP)をインストールする際、こける。

Running install for module 'Net::Cmd'
Running make for G/GB/GBARR/libnet-1.22.tar.gz
Has already been unwrapped into directory /Users/******/.cpan/build/libnet-1.22-WuyGyk
Has already been made
Running make test
PERL_DL_NONLAZY=1 /Users/******/ports/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/config........ok
t/datasend......ok
t/ftp...........skipped: (no reason given)
t/hostname......^Cmake: *** [test_dynamic] Interrupt
GBARR/libnet-1.22.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GBARR/libnet-1.22.tar.gz
Running make install
make test had returned bad status, won't install without force
Running install for module 'Net::FTP'
Running make install
make test had returned bad status, won't install without force
Term::ReadKey is up to date (2.30).
Term::ReadLine::Perl is up to date (1.0302).
YAML is up to date (0.66).
Text::Glob is up to date (0.08).
CPAN is up to date (1.9205).
File::Which is up to date (0.05).
Failed during this command:
GBARR/libnet-1.22.tar.gz : make_test NO

blibのインストール

おそらく、blibをいれれば大丈夫と思われる。

sudo port install blib

blibいれようとしたらつまる。

sudo ln -s /usr/X11/lib/libXrandr.2.dylib libXrandr.2.0.0.dylib

シンボリックリンクが libXrandr.2.dylib しかないため blib のインストールで失敗してる。
新たに張ればOK!!

cpan使ってインストールしたモジュールの再構築

  1. ~/.cpan -> 削除、もしくは移動
  2. パスの通ってるperlのライブラリのsite_perlってのを削除、もしくは移動

これでもう一度cpanコマンドうてば最初の状態のように使える。

かすかな願い

だれか vi の as3用シンタックスつくってくれないかな。
as1用だと本当分かりにくい。。。
まっないよりかはマシなんだが。
誰か知ってたりしり、作ったりしたら教えてください。