Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Nov 18, 2017 4:35 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - PERL can't set the locale; make sure $LC_* and $LANG are correct
Author Message
Post subject: PERL can't set the locale; make sure $LC_* and $LANG are correct  |  Post Posted: Thu May 20, 2010 12:40 pm
If you wish to fix the following errors (on debian google for other distributions)
Code:
can't set the locale; make sure $LC_* and $LANG are correct

or
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Do this:
Code:
apt-get update
apt-get install belocs-locales-bin belocs-locales-data

then add to /etc/locale.gen the locales that you're ussing. I have the following:
Code:
cat /etc/locale.gen
en_US.UTF-8 UTF-8

And finaly do this:
Code:
# locale-gen
Generating locales...
en_US.UTF-8... done
Generation complete.


The error should be fixed now. No reboot required.
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO