if perl shows the error “setting locale failed”,
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset),
Run the following (i.e for spanish)
# sudo locale-gen es_ES.UTF-8 # dpkg-reconfigure locales
it can be also en_EN.UTF-8, or any other locale.