perl:警告:ロケールの設定に失敗しました。

perl:警告:ロケールの設定に失敗しました。

VPS Centos 7を購入しました。

しかし、SSHで何が起こっているのかを理解し、WHMに接続することができました。

接続すると、次のエラーの一覧が表示されます。

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

私のシステムは最新のMacOS Mojaveです。

修正する:ついに成功しました:)私のシステムの端末にこれら2つのコマンドを入力するだけで十分でした。

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

サーバーがアメリカにあるので、言語を設定する必要があります。これで問題は、端末を閉じて再度開くと、エクスポートコマンドを再実行する必要があることです。しかし、すでに以前よりも良くなっていて、もっと探しています... :)

アップデート2:

しかし、これらの2行を〜/ .bash_profileファイルに追加する必要がありました。

ベストアンサー1

インストール

Fedora、RHEL、Redhat、CentOSで使用しました。

sudo dnf install langpacks-de

ドイツ語(de)言語パックに適用されます。ログアウトして再度ログインしましたが、うまくいきました。

他の言語パックを検索

dnf search langpacks-

変化

私が使用している利用可能なロケールをリストします。

localectl list-locales

そして新しい設定

sudo localectl set-locale de_DE.utf8

おすすめ記事