[yocto] problem with perl and locale support in SDK

Hans Beckérus hans.beckerus at gmail.com
Thu Sep 26 01:37:25 PDT 2013


Hi. We get following problem when trying to execute any perl programs
in the SDK environment.
This is an example of running 'perl -v'

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MESSAGES = "C",
LC_COLLATE = "C",
LC_TIME = "C",
LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This is perl 5, version 14, subversion 3 (v5.14.3) built for x86_64-linux

>which perl
/opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/perl

Running this from inside the Yocto sysroot does not render the same problem.
>/home/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl -v

This is perl 5, version 14, subversion 3 (v5.14.3) built for
x86_64-linux-thread-multi

Why is perl built differently for native and nativesdk? Is this
something that we can control?

Thanks.
Hans



More information about the yocto mailing list