perl setting locale failed

root@server:~# /usr/lib/cgi-bin/awstats.pl -config=hottiehunter.com -update
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_PAPER = "ne_NP",
    LC_ADDRESS = "ne_NP",
    LC_MONETARY = "ne_NP",
    LC_NUMERIC = "ne_NP",
    LC_TELEPHONE = "ne_NP",
    LC_IDENTIFICATION = "ne_NP",
    LC_MEASUREMENT = "ne_NP",
    LC_NAME = "ne_NP",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

########## solution ################
http://stackoverflow.com/questions/2499794/how-can-i-fix-a-locale-warning-from-perl

"locale" is a subset of the user's environment that defines the user's language, country and any special variant preferences that the user wants to see in their user interface


locale             << shows locale variables
copy below export commands to ~/.bashrc  file or run below commands

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

dpkg-reconfigure locales

vim /etc/default/locale

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



No comments:

Post a Comment