4
5

More than 5 years have passed since last update.

Elixirのコンパイル時にでるlocale警告を解消する方法(CentOS6)

Posted at
  • mix compile時に出力されるlocaleエラー
  • 単純にElixirだけインストールした環境だとlocaleの設定がデフォルトのため警告がでることがある

warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)

この環境はElixirが不具合を引き起こす可能性のあるlatin1(iso-8859-1)で起動しているので、localeをUTF8に設定してください。

cp /etc/sysconfig/i18n /etc/sysconfig/i18n.org
echo "LC_CTYPE=\"en_US.UTF-8\"" >> /etc/sysconfig/i18n
. /etc/sysconfig/i18n
4
5
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
4
5