Mojolicious::Lite がインストールできない場合の解決方法(CentOS)
perlを使ってMVCを学ぼうと思い、Mojolicious::Liteをインストールしようとしたところ、下記エラー(の一部)が表示され、正常にインストールすることができなかった。
install Mojolicious::Lite ~~~~~~~~ 省略 ~~~~~~~~ Result: FAIL Failed 74/82 test programs. 0/600 subtests failed. make: *** [test_dynamic] エラー 255 SRI/Mojolicious-4.14.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SRI/Mojolicious-4.14.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: SRI/Mojolicious-4.14.tar.gz : make_test NO
エラー内容を細かく見返していると、下記のエラー文が散見された。
t/mojolicious/upload_stream_lite_app.t ..... Can't locate Time/HiRes.pm in @INC (@INC contai
どうやらTime/HiRes.pmとやらが存在しないようなので、下記記事を参考にインストールした。
CentOS6でswatchをインストール
# yum install swatch
これで目的のモジュールがインストールされた。
再度、Mojolicious::Liteのインストールを実行すると…
# perl -MCPAN -e shell Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. cpan[1]> install Mojolicious::Lite ~~~~~~~~ 省略 ~~~~~~~~ SRI/Mojolicious-4.14.tar.gz /usr/bin/make install -- OK
無事インストールできた。