[Perl] Date::Simpleのインストール
CPANからDate::Simpleをインストールしようとすると、make testで失敗してインストールできませんでした。
sh>>
perl -MCPAN -e 'install Date::Simple'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 22 May 2012 05:43:03 GMT
Running install for module Date::Simple
Running make for I/IZ/IZUT/Date-Simple-3.03.tar.gz
~~~ 中略 ~~~
make: *** [test_dynamic] エラー 1
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
<<--
この場合は環境変数LANG=Cに設定すれば成功するようです。
参考サイト Date::Simpleのインストール失敗と、その対応
sh>>
echo $LANG
ja_JP.UTF-8
export LANG=C
echo $LANG
C
<<--
再実行します。
sh>>
perl -MCPAN -e 'install Date::Simple'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 22 May 2012 05:43:03 GMT
Running install for module Date::Simple
Running make for I/IZ/IZUT/Date-Simple-3.03.tar.gz
~~~ 中略 ~~~
Writing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Date/Simple/.packlist
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
/usr/bin/make install -- OK
<<--