Pencarian

Rabu, 05 Juni 2013

locales warning di ubuntu dan debian


Entah kenapa beberapa hari ini ada warning di beberapa server saya, warningnya seperti ini :
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "id_ID.UTF-8",
LC_ADDRESS = "id_ID.UTF-8",
LC_MONETARY = "id_ID.UTF-8",
LC_NUMERIC = "id_ID.UTF-8",
LC_TELEPHONE = "id_ID.UTF-8",
LC_IDENTIFICATION = "id_ID.UTF-8",
LC_MEASUREMENT = "id_ID.UTF-8",
LC_TIME = "id_ID.UTF-8",
LC_NAME = "id_ID.UTF-8",
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
Setelah cari-cari referensi, untuk mengatasi hal tersebut tinggal menjalankan perintah berikut :
locale-gen en_US.UTF-8
localedef -i en_US -f UTF-8 en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

Tidak ada komentar:

Posting Komentar