Monday, June 8, 2015

How to fix perl: warning: Setting locale failed on Mac OS X

On Mac os x after using ssh on terminal to linux box you'll see
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
  LANGUAGE = "en_US:en",
  LC_ALL = (unset),
  LC_CTYPE = "UTF-8",
  LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Create file on your home with name ".bash_profile" and add this line
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
After added if you don't want to restart or re-login you can use this command to reload bash config
source ~/.bash_profile

No comments:

Post a Comment