Leopard に CPAN モジュールが入れられない件、初心者ですから…
ちょっと動作を確認したい CPAN モジュールがあったから、mac に CPAN つかって入れちゃえーと思ったが最後。
sudo -H install -i Bundle::CPAN
前回 Bundle::CPAN は終わっているはずなのにもう一回問題解決をすることとなるとはorz
すんなりいくと思っていたインストール結果が↓。
make: *** No rule to make target `/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running install for module IO::Uncompress::Base Running make for P/PM/PMQS/IO-Compress-Base-2.008.tar.gz Is already unwrapped into directory /Users/sato/.cpan/build/IO-Compress-Base-2.008 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running install for module IO::Compress::Base Running make for P/PM/PMQS/IO-Compress-Base-2.008.tar.gz Is already unwrapped into directory /Users/sato/.cpan/build/IO-Compress-Base-2.008 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running install for module Compress::Raw::Zlib Running make for P/PM/PMQS/Compress-Raw-Zlib-2.008.tar.gz Is already unwrapped into directory /Users/sato/.cpan/build/Compress-Raw-Zlib-2.008 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running make for P/PM/PMQS/IO-Compress-Zlib-2.008.tar.gz Is already unwrapped into directory /Users/sato/.cpan/build/IO-Compress-Zlib-2.008 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
make に必要な情報が何にもないじゃないか、と言いたいのだと思いますが…一体何をすればよいのか?
一個ずつ見ていくのもギブアップなので、参考にしたサイトによると「古い Perlライブラリからコアをコピーしちゃえよ」とのソリューション。
sudo cp /System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE/* /System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE/
えー、これしか手はないの?
perl を再構築するとかかなぁ…なんとも情報不足。