Workaround for falling back to the standard locale ("C") in Perl

Source: Internet
Author: User
Tags locale

Perl:warning:Falling back to the standard locale ("C").

Perl:warning:Setting locale failed.

Perl:warning:Please Check that your locale settings:

LANGUAGE = (unset),

Lc_all = (unset),

LANG = "ZH_CN." Gb2312;zh_cn. Utf-8;en_us;en_us. UTF-8 "

are supported and installed on your system.

Perl:warning:Falling back to the standard locale ("C").

Similar prompts also appear when you use some other commands, such as mysqlhotcopy.

Searched for a good while and tried several times to find a simple way to solve the problem, as follows:

Vi/root/.bashrc

And at the bottom, add

Export Lc_all=c

or run directly

echo "Export Lc_all=c" >>/ROOT/.BASHRC

And then do it:

Source/root/.bashrc

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.