ubuntuでlocaleがない場合

また忘れて探してしまった。

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “ja_JP:ja:en_GB:en”,
LC_ALL = (unset),
LANG = “ja_JP.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).

などとエラーが出る場合の対処。特にdebootstrapなんかでインストールするとよく出るやつ。

# apt-get install language-pack-ja
# dpkg-reconfigure locales

language-pack-jaを入れて初めてja_JP.UTF-8のlocaleが作られるっぽいので、language-pack-jaを入れずにdpkg-reconfigure localesしても無駄。

Hatena Bookmark for this entryHatena Bookmark - ubuntuでlocaleがない場合 Clip this entry on Livedoor ClipLivedoor Clip - ubuntuでlocaleがない場合 Bookmark this on BuzzURLBookmark this on BuzzURL Bookmark this on FC2 Bookmark Bookmark this on Delicious Digg This
  1. No comments yet.

  1. No trackbacks yet.