Search Suggest

Bài đăng

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

Đăng nhận xét