[lfs-support] LFS-7.0 7.13. The Bash Shell Startup Files

Baho Utot baho-utot at columbus.rr.com
Thu Feb 2 17:57:45 PST 2012


On 02/02/2012 06:42 PM, Bruce Dubbs wrote:
> Baho Utot wrote:
>> I have started on BLFS-SVN<last nite>
>> Upon compiling openssl I got this error
>>
>> Operating system: i686-whatever-linux2
>> perl: warning: Setting locale failed.
>> perl: warning: Please check that your locale settings:
>> 	LANGUAGE = (unset),
>> 	LC_ALL = (unset),
>> 	LANG = "en_US"
>>
>> Should LANGUAGE and LC_ALL be set in /etc/profile in chapter 7.13?
> It probably wouldn't hurt anything.
>
> I don't have those warning in my log for openssl-1.0.0e, but I don't
> have any of those locale settings at all.  See what you get if you unset
> LANG.
>
>     -- Bruce
>
>

You will get the error above on anything that requires perl when it is 
built.

If you unset LANG that works or you can add the following to 
/etc/profile fix the error

export LC_ALL=C

So profile should look like this

cat > ${pkgdir}/etc/profile << "EOF"
# Begin /etc/profile

export LANG=<ll>_<CC>.<charmap><@modifiers>
export LC_ALL=C

# End /etc/profile
EOF



More information about the lfs-support mailing list