地方エンジニアの学習日記

興味ある技術の雑なメモだったりを書いてくブログ。たまに日記とガジェット紹介。

cpanmのビルドログ

cpanmのビルド(インストールログ)はinstall.logって感じで出力される。

コマンド自体の終了ステータスが1以外の時には下記を確認することで何が失敗したかなどの結果を確認することができる。

Test Summary Report
-------------------
t/01_Module_Load_Conditional.t (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
Files=1, Tests=1,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.05 cusr  0.01 csys =  0.09 CPU)
Result: FAIL
Failed 1/1 test programs. 1/1 subtests failed.
make: *** [test_dynamic] エラー 255
-> FAIL Installing Module::Load::Conditional failed. See /root/.cpanm/build.log for details.
-> FAIL Bailing out the installation for IPC-Cmd-0.78. Retry with --prompt or --force.
-> FAIL Bailing out the installation for ExtUtils-CBuilder-0.280205. Retry with --prompt or --force.
-> FAIL Bailing out the installation for Module-Build-0.4003. Retry with --prompt or --force.
-> FAIL Bailing out the installation for App-cpanminus-1.5018. Retry with --prompt or --force.

ビルド時にテストも一緒に行われるのだがこれが失敗してもインストールは失敗となる。

テスト不要な時は-nでテストをスキップすることが可能。脳死で行って良い訳ではないので注意が必要そう。

-n, --notest
モジュールのテストをスキップします。数百のディストリビューションを、 既にテスト済みでうまくビルドできるとわかっている、同じperlとアーキテクチャーに、 インストールする時間を節約したいだけの時に使ってください。

perldoc.jp