Página Inicial > Linux > perl: warning: Setting locale failed.

perl: warning: Setting locale failed.

O problema: Toda a vez que tentava instalar algo com o apt-get apareciam algumas mensagens:

erl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
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_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Eis a solução, no console:

# locale-gen pt_BR pt_BR.UTF-8

E depois:

# dpkg-reconfigure locales

Fonte e créditos: http://pequenotux.blogspot.com.br/2010/03/perl-warning-setting-locale-failed.html

  1. Nenhum comentário ainda.
  1. Nenhum trackback ainda.
*