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

FAQ
It is currently Sun Dec 10, 2023 5:56 am


Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

Author Message
designeru
Post  Post subject: PERL can't set the locale; make sure $LC_* and $LANG are correct  |  Posted: Thu May 20, 2010 12:40 pm

Joined: Thu Dec 31, 2009 4:44 pm
Posts: 10

Offline
 

PERL can't set the locale; make sure $LC_* and $LANG are correct

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.





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "PERL can't set the locale; make sure $LC_* and $LANG are correct"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FIX: manconv: can't set the locale; make sure $LC_* and $LANG are correct

designeru

0

2086

Thu May 20, 2010 12:43 pm

designeru View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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