Tuesday, December 7

Troubleshoot: perl warning: Setting locale failed

suatu hari ketika sedang konfigurasi ubuntu, ada error yang menyebalkan dari paket locales:

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

solusinya mudah

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

sumber: dari sini.


  • Bambang

    Thanks Gan…
    Tetapi punya saya keluar tulisan seperti ini :
    en_ZM.UTF-8… cannot open locale definition file `en_ZM’: No such file or directory
    Itu gimana Gan???
    Saya masih Newbie…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.