23
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Perlで warning: Setting locale failed. と警告された時の対処

Last updated at Posted at 2020-01-13

Ubuntuでperlを動かしたときに以下のような警告が表示されてしまう場合の対処方法です。

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

ググると対処方法がいくつか出てきます。

私の場合は、以下を実行したら治りました。

$ sudo apt install locales-all

Ubuntuのバージョンは19.10です。本記事は2020年1月投稿です。

2021/03/08追記

DockerのCentOS 8でも同じことが起きました。以下で解決しました。

$ sudo yum install -y glibc-langpack-en

日本語ロケールなら glibc-langpack-ja だと思います。

23
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?