Raspberry Pi(Arch Linux ARM)でPerl実行する時のlocale設定の備忘メモ。実行しようとしたところ次のようなwarningメッセージが出てしまいます。
1 2 3 4 5 6 7 8 |
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
errorではないし放置しようかとも思ったけど気持ち悪いのでlocale設定を修正。
1 2 3 4 5 |
[root@alarmpi ~]# echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen [root@alarmpi ~]# locale-gen Generating locales... en_US.UTF-8... done Generation complete. |
これでwarning messageは消えました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@alarmpi ~]# perl -v This is perl 5, version 16, subversion 2 (v5.16.2) built for armv6l-linux-thread-multi Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. [root@alarmpi ~]# |