perl: warning: Setting locale failed in Centos 7/8

 Error:

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

        LANGUAGE = (unset),

        LC_ALL = (unset),

        LANG = "C.UTF-8"


Solutions:

Run command on terminal:

export LC_CTYPE=en_US.UTF-8

export LC_ALL=en_US.UTF-8


Go to .bash_profile and paste it to the bottom of file for permanent fix

vim /root/.bash_profile

export LC_CTYPE=en_US.UTF-8

export LC_ALL=en_US.UTF-8

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment