Perl warning Setting locale failed

A few days ago, I tried to install CSF (Config Server Firewall) on Debian Wheezy and I got some error when I running csftest.pl


root@servermox:/tmp/csf/csf# perl /usr/local/csf/bin/csftest.pl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "en_US.UTF-8",
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Perl warning Setting locale failed


you can try this command to fix it

$ sudo locale-gen en_US


but if the command does not help you, you can install or reconfigure locales

# locale-gen en_US en_US.UTF-8 hu_HU hu_HU.UTF-8


then


# dpkg-reconfigure locales


good luck!
Previous
Next Post »