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

简介: /********************************************************************************** * perl: warning: Falling back to the standard locale ("C"). * 说明: * 使用debootstrap的时候,遇到这个问题,记录解决方法。
/**********************************************************************************
 *          perl: warning: Falling back to the standard locale ("C").
 * 说明:
 *     使用debootstrap的时候,遇到这个问题,记录解决方法。
 * 
 *                                          2017-2-18 深圳 南山平山村 曾剑锋                             
 *********************************************************************************/


一、参考文档:
    1. How to fix a locale setting warning from Perl?
        http://stackoverflow.com/questions/2499794/how-to-fix-a-locale-setting-warning-from-perl

二、原因:
If you are creating a rootfs using debootstrap you will need to generate the locales. You can do this by running:
    sudo locale-gen en_US.UTF-8
This tip comes from, https://help.ubuntu.com/community/Xen
On Debian you may need to do $ echo en_US UTF-8 >> /etc/locale.gen first.

三、处理方法:
    root@zengjf:# echo en_US UTF-8 >> /etc/locale.gen
    root@zengjf:# locale-gen en_US.UTF-8
    Generating locales (this might take a while)...
      en_US.UTF-8... done
      Generation complete.
    root@zengjf:#

 

目录
相关文章
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
573 0
|
11月前
You may use special comments to disable some warnings. Use // eslint-disable-next-line……
You may use special comments to disable some warnings. Use // eslint-disable-next-line……
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
298 0
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
237 0
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
241 0
|
Perl
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
699 0
|
Python
arserWarning: Falling back to the ‘python‘ engine because the ‘c‘ engine does not support regex sepa
arserWarning: Falling back to the ‘python‘ engine because the ‘c‘ engine does not support regex sepa
130 0
arserWarning: Falling back to the ‘python‘ engine because the ‘c‘ engine does not support regex sepa
|
安全 Linux
linux系统下,警告:warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 和 warning: the `gets' function is dangerous and should
字符数组 的英文名字是 char [] gets()函数的基本用法为:char *gets(char *s); 该函数的参数是一个字符数组,该函数的返回值也是一个字符数组。 linux下的代码如下: 1 #include 2 3 int main() 4 { 5    c...
1988 0