CPANからDate::Simp
1 # perl -MCPAN -e 'install Date::Simple' 2 CPAN: Storable loaded ok 3 Going to read /root/.cpa n/Metadata 4 Database was generated on Tue, 22 May 2012 05:43:03 GMT 5 Running install for module Date::Simp le 6 Running make for I/IZ/IZUT/ Date-Simpl e-3.03.tar .gz 7 ~~~ 中略 ~~~ 8 make: *** [test_dynam ic] エラー 1 9 /usr/bin/m ake test -- NOT OK 10 Running make install 11 make test had returned bad status, won't install without force
この場合は環境変数LANG=Cに設定すれば成功するようです。
参考サイト Date::Simp
1 # echo $LANG 2 ja_JP.UTF-8 3 # export LANG=C 4 # echo $LANG 5 C
再実行します。
1 # perl -MCPAN -e 'install Date::Simple' 2 CPAN: Storable loaded ok 3 Going to read /root/.cpa n/Metadata 4 Database was generated on Tue, 22 May 2012 05:43:03 GMT 5 Running install for module Date::Simp le 6 Running make for I/IZ/IZUT/ Date-Simpl e-3.03.tar .gz 7 ~~~ 中略 ~~~ 8 Writing /usr/lib64 /perl5/sit e_perl/5.8 .8/x86_64- linux-thre ad-multi/a uto/Date/S imple/.pac klist 9 Appending installati on info to /usr/lib64 /perl5/5.8 .8/x86_64- linux-thre ad-multi/p erllocal.p od 10 /usr/bin/m ake install -- OK
posted by
akanuma
on Thu 24 May 2012
at 06:47