• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

 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
<<--

posted by akanuma akanuma on Thu 24 May 2012 at 06:37 with 0 comments